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 steps of struts installation?
Why do we need struts?
what is the purpose of load_on_startup entry in struts- config.xml?
Can you explain custom tag?
What are interceptors in struts 2?
Is struts mvc framework?
What are apache struts?
How to handle exceptions in structs?
can we change the order of parameters in execute()?
What is the purpose of execute method of action class?
What is the purpose of form-beans tag in struct-config.xml?
What is struts framework?