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 |
How we can install struts?
What validate() and reset() method does ?
how to develop the submit and search operations in single jsp using struts?
What is the purpose of constant tag in struts.xml?
Can you explain value stack?
What is struts actionmapping?
What is the use of struts config xml file?
In which method of action class the business logic is executed?
When do I need “struts.jar” on my classpath?
How to add ms-word file in struts at the same time how to add images
What is action chaining ?
What is front controller in struts2?