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

Which design pattern the interceptors in struts2 is based on?

924


How do you find the struts version being used in a project?

942


What is the purpose of @result?

1023


What is the purpose of @conversion annotation annotation?

1275


What is the use of reset method of ActionForm class?

1033


List some struts tag libraries?

951


What is the purpose of @requiredstringvalidator?

968


What is actioninvocation in struts2?

1029


Give an example of validates method used to avoid errors.

999


In struts, how can we access java beans and their properties?

1027


What is dispatchaction?

1100


How you will display validation fail errors on jsp page?

938


How client side validation is enabled on a jsp form?

1076


What is execute method in struts?

941


Explain about the library tag?

989