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

What is the purpose of @beforeresult annotation?

1080


What is difference between lookupdispatchaction and dispatchaction?

1167


Explain about struts relation to html tags?

1012


Which tag is used to declare constants in struts xml?

1040


What is token used for?

971


Can you explain struts.properties in struts2?

1006


What is interceptor? And life cycle methods of interceptor?

1100


What is the use of jsonvalidation in struts?

1048


What is apache struts used for?

975


What are the bundled validators?

1052


What is the purpose of form-beans tag in struct-config.xml?

961


How does struts2 token work?

1021


What is the use of forwardaction?

1058


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

1108


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

1061