how to create a search field in struts.with code
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Are struts and shocks the same?
where you will implement the tiles in struts?
What is the difference between struts and spring?
What is struts-default package and what are it’s benefits?
which MVC architecture struts follows and why?
what r the disadvantages of MVC-2 Architecture?
Why are struts tightly coupled?
Lists the bundled validators in struts?
What is interceptor struts2?
How to build struts application in eclipse?
What are Struts properties?
Difference between struts and spring? Or why use spring, if you are already using struts?