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 |
Which file is used by controller to get mapping information for request routing?
How to combine the struts with velocity template?
What is the difference between validation.xml and validator-rules.xml files in struts?
I will explain the scenario now i have a form1 having some fields and i made it extends DynaActionForm. in struts config how can i specify another form form2 which has to extend the form1 please specify is it better to use actionform or dyna action form in applations. is dyna action form is comfortable in declaring form variables of type 'ArrayList<somegenerics>' extend the
What is the use of struts?
What is the purpose of execute method of action class?
If the framework doesn’t do what I want, can I request that a feature be added?
what happen if the private constructor is written in a claass
How can we integrate log4j in Struts2 application?
How many struts config file in a struts application?
What is meant by custom tags?
How does struts work?