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
What is the purpose of @beforeresult annotation?
What is difference between lookupdispatchaction and dispatchaction?
Explain about struts relation to html tags?
Which tag is used to declare constants in struts xml?
What is token used for?
Can you explain struts.properties in struts2?
What is interceptor? And life cycle methods of interceptor?
What is the use of jsonvalidation in struts?
What is apache struts used for?
What are the bundled validators?
What is the purpose of form-beans tag in struct-config.xml?
How does struts2 token work?
What is the use of forwardaction?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?