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 |
Give an alternative way to protect jsp’s with not much features from direct access.
What is difference between interceptors and filters?
What is the default suffix for struts2 action uri ?
What is switchaction?
What is the purpose of @element?
What is structs 2 validation framework?
What are the classes used as part of struts framework ?
Even though Servlets and JSP are web based concepts .wht is the use of using Struts using then
Which tag is used to declare constants in struts xml?
Which design pattern is implemented by Struts2 interceptors?
how to write my own Action servlet by extending pre-defined Action servlet in struts config.
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