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
Which design pattern the interceptors in struts2 is based on?
How do you find the struts version being used in a project?
What is the purpose of @result?
What is the purpose of @conversion annotation annotation?
What is the use of reset method of ActionForm class?
List some struts tag libraries?
What is the purpose of @requiredstringvalidator?
What is actioninvocation in struts2?
Give an example of validates method used to avoid errors.
In struts, how can we access java beans and their properties?
What is dispatchaction?
How you will display validation fail errors on jsp page?
How client side validation is enabled on a jsp form?
What is execute method in struts?
Explain about the library tag?