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
How action mapping is configured in Struts?
What is the purpose of '@keyproperty'?
What do you mean by a custom tag?
Which design pattern is implemented by Struts2 interceptors?
What is the difference between empty default namespace and root namespace?
Why we use struts in java?
What is the purpose of @emailvalidator?
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What does the term struts mean?
Are struts still used?
What is apache struts used for?
What do you mean by tiles in struts?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
What is the default suffix for struts2 action uri ?
Can I have html form property without associated getter and setter formbean methods?