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 |
Difference between html tags and struts specific html tags
How can we group related actions in one group in Struts?
What is dispatchaction?
What is the purpose of @keyproperty annotation annotation?
Which technologies can be used at view layer in struts?
What is ognl?
How display data base errors on web console by using the Struts Framework?
What is the purpose of struct-config.xml in struct2?
What helpers in the form of jsp pages are provided in struts framework?
What is role of action class?
What is struts xml?
Explain about struts?