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 |
What kind of mvc is struts 2?
What are Struts2 core components?
How to override the default error message that can come during file uploading process?
how to debug struts project in netbean ?
Explain struts?
What is DynaActionForm?
Why is action servlet a singleton in struts?
How can duplicate form submission be handled in struts 2?
How can we group related actions in one group in Struts?
What configuration changes are required to use resource files in Struts?
How we can install struts?
What is struts 2 framework in java?