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 difference between Jakarta Struts and Apache Struts? Which one is better to use?
How are interceptors and servlet filters different?
How can link tag’s action attribute be used?
What is the purpose of redirect result type?
Whats the difference between the default namespace and the root namespace?
What is the difference between session scope and request scope when saving formbean ?
What is the purpose of @results annotation?
How to get data from the velocity page in a action class?
Name some useful annotations introduced in Struts2?
Why we use struts over servlets?
What is the life cycle of actionform?
Explain struts.devmode?
What is the purpose of @key?
What's mvc pattern ?
What is the use of lookupdispatchaction?