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 are the some useful annotations introduced in struts2?
What does validation interceptor?
What are action errors and error and what are the consequences they impose?
What do you mean by action errors and what are the results they force?
How can we write our own interceptor and map it for action?
Can I have html form property without associated getter and setter formbean methods?
What are the classes used as part of struts framework ?
In struts.xml, what does the attribute "method" stands for in the "action" tag?
how to develop the submit and search operations in single jsp using struts?
What is the purpose of struts.properties in struct2?
Are the struts tags xhtml compliant ?
How many action classes can be used in struts application?
Is there a particularly good ide to use with struts?
What are the life cycle methods of interceptor?
Explain the necessity of empty tag?