how to create a search field in struts.with code

Answers were Sorted based on User's Feedback



how to create a search field in struts.with code ..

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

how to create a search field in struts.with code ..

Answer / qwer

plaease give tha answer

Is This Answer Correct ?    6 Yes 2 No

how to create a search field in struts.with code ..

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

Post New Answer

More Struts Interview Questions

shall we use any name for deployment descriptor of struts instead of struts-config.xml

3 Answers   Polaris,


how to get the last 10 elements using logic:iterate in struts with hiernate from database.

0 Answers   Wipro,


What is the use of token interceptor in Struts2?

0 Answers  


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?

4 Answers   Wipro,


What steps are required to for an application migration from Struts1 to Struts2?

0 Answers  






Where can I get a copy of struts?

0 Answers  


What does modeldriven interceptor?

0 Answers  


Difference between struts and spring? Or why use spring, if you are already using struts?

0 Answers  


Why was reload removed from struts (since 1.1)?

0 Answers  


What is the purpose of global-forwards tag in struct-config.xml?

0 Answers  


How many servlet controllers are used in a Struts Application?

0 Answers  


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

1 Answers  


Categories