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 |
shall we use any name for deployment descriptor of struts instead of struts-config.xml
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
What is the use of token interceptor in Struts2?
when connecting with the database,if database server is down,ho can we handle this exception in struts,how can we send error message to the user?
What steps are required to for an application migration from Struts1 to Struts2?
Where can I get a copy of struts?
What does modeldriven interceptor?
Difference between struts and spring? Or why use spring, if you are already using struts?
Why was reload removed from struts (since 1.1)?
What is the purpose of global-forwards tag in struct-config.xml?
How many servlet controllers are used in a Struts Application?
drawback of Validation Framework where and how to write the connection pool object in the programe how to debug the programe and application in struts without using eclips