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 |
why we use struts in our web application , means what was drawbacks of servlet ...pls answer
What are the steps used to setup dispatch action?
How is forward action used for integration?
What’s the utilization of resource bundle properties file in struts validation structure?
What is the purpose of @before annotation?
How can you create your custom interceptor in struts 2?
Can we have different controllers in one struts app?
is it necessary to write struts-confing.xml ,what tags are important in that xml file?
i have 500 jsps in my application,and i have same forward name for each jsp,so it lokks in strutsconfig.xml,from 1 to 500,but i want send 498 page directly,how can i cingigure my application
Why actionservlet is singleton in struts?
Explain the life cycle of a request in struct2 application?
Can you explain struts validator framework?