how to create a search field in struts.with code

Answer Posted / shally

<html:submit property="searchField" name="SearchFormBean"
onclick="javascropt:search()"

where searchField is the name fo the field as defined in
SearchFormBean.java

Is This Answer Correct ?    6 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of @emailvalidator annotation?

493


What is the purpose of @element?

580


What is difference between interceptors and filters?

530


Describe the two types of formbeans.

571


What are the benefits of Interceptors in Struts2?

644






What is the use of Struts.xml configuration file?

507


What are the classes used as part of struts framework ?

519


What are action errors and error?

573


What is the purpose of struts.properties in struct2?

526


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

572


What is struts2 namespace?

509


What is the default suffix for struts2 action uri ?

550


What are the struts2 error message keys that can come during file uploading process?

603


What's the purpose of execute method of action class?

526


What design patterns are used in struts?

556