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 |
Are interceptors and filters different?
how many methods are there in RequestPrccesor class?
What is apache struts framework?
How Struts internally works? For Example if we type the URL "/login.do" how the process goes internaly? How the struts-config.xml loaded?
What do you mean by actionmapping?
What are the contents on web.xml in struts application ?
1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they
What is token used for?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
Explain the core end goal while using java struts?
Can a reducer dispatch an action?
What does i18n interceptor?