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

What kind of mvc is struts 2?

0 Answers  


What are Struts2 core components?

0 Answers  


How to override the default error message that can come during file uploading process?

0 Answers  


how to debug struts project in netbean ?

0 Answers  


Explain struts?

0 Answers  






What is DynaActionForm?

0 Answers  


Why is action servlet a singleton in struts?

0 Answers  


How can duplicate form submission be handled in struts 2?

0 Answers  


How can we group related actions in one group in Struts?

0 Answers  


What configuration changes are required to use resource files in Struts?

0 Answers  


How we can install struts?

0 Answers  


What is struts 2 framework in java?

0 Answers  


Categories