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 struts2 in java?

1025


What is dispatchaction?

1079


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

988


What is the significance of logic tags in Struts?

967


Do I have to credit struts on my own website?

987


Are interceptors and filters different?

1021


What are action errors and error and what are the consequences they impose?

997


How does one create an action in struts 2?

942


Why use struts framework in java?

1076


What is spring and struts in java?

960


Can we have multiple struts config files ?

947


What are the advantages of spring mvc over struts mvc?

910


What is purpose of execandwait interceptor?

1077


Can you explain struts.properties in struts2?

931


Is struts efficient?

904