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 are the two types of validations supported by validator framework?
What is the purpose of @conversion annotation annotation?
What is the differences between struts1 and struts2?
What do you mean by actionmapping?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
Which interceptor is responsible for file upload support?
What are construction struts?
What are action errors and error and what are the consequences they impose?
what r the disadvantages of MVC-2 Architecture?
What is the purpose of form-be tag in struct-config.xml?
What is MVC?
What are action errors and error?