how to create a search field in struts.with code
Answer Posted / 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 |
Post New Answer View All Answers
What is struts2 in java?
What is dispatchaction?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the significance of logic tags in Struts?
Do I have to credit struts on my own website?
Are interceptors and filters different?
What are action errors and error and what are the consequences they impose?
How does one create an action in struts 2?
Why use struts framework in java?
What is spring and struts in java?
Can we have multiple struts config files ?
What are the advantages of spring mvc over struts mvc?
What is purpose of execandwait interceptor?
Can you explain struts.properties in struts2?
Is struts efficient?