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 difference between Jakarta Struts and Apache Struts? Which one is better to use?

972


How are interceptors and servlet filters different?

914


How can link tag’s action attribute be used?

878


What is the purpose of redirect result type?

969


Whats the difference between the default namespace and the root namespace?

942


What is the difference between session scope and request scope when saving formbean ?

934


What is the purpose of @results annotation?

1199


How to get data from the velocity page in a action class?

905


Name some useful annotations introduced in Struts2?

920


Why we use struts over servlets?

995


What is the life cycle of actionform?

965


Explain struts.devmode?

923


What is the purpose of @key?

977


What's mvc pattern ?

943


What is the use of lookupdispatchaction?

963