Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to create a search field in struts.with code

Answer Posted / shally

<html:submit property="searchField" name="SearchFormBean"
onclick="javascript:search()"/>

search() {
document.getElementById('searchField').value='Search';

}

Then in action class...do the search logic after
checking "Search" action .

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How action mapping is configured in Struts?

1057


What is the purpose of '@keyproperty'?

986


What do you mean by a custom tag?

897


Which design pattern is implemented by Struts2 interceptors?

952


What is the difference between empty default namespace and root namespace?

1068


Why we use struts in java?

887


What is the purpose of @emailvalidator?

942


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

1035


What does the term struts mean?

945


Are struts still used?

906


What is apache struts used for?

877


What do you mean by tiles in struts?

996


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

879


What is the default suffix for struts2 action uri ?

929


Can I have html form property without associated getter and setter formbean methods?

964