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 are the steps of struts installation?

0 Answers  


Why do we need struts?

0 Answers  


what is the purpose of load_on_startup entry in struts- config.xml?

8 Answers   Satyam,


Can you explain custom tag?

0 Answers  


What are interceptors in struts 2?

0 Answers  






Is struts mvc framework?

0 Answers  


What are apache struts?

0 Answers  


How to handle exceptions in structs?

0 Answers  


can we change the order of parameters in execute()?

4 Answers   Polaris, Serco,


What is the purpose of execute method of action class?

0 Answers  


What is the purpose of form-beans tag in struct-config.xml?

0 Answers  


What is struts framework?

0 Answers  


Categories