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

why we use struts in our web application , means what was drawbacks of servlet ...pls answer

1 Answers   IBM,


What are the steps used to setup dispatch action?

0 Answers  


How is forward action used for integration?

0 Answers  


What’s the utilization of resource bundle properties file in struts validation structure?

0 Answers  


What is the purpose of @before annotation?

0 Answers  


How can you create your custom interceptor in struts 2?

0 Answers  


Can we have different controllers in one struts app?

7 Answers   Accenture,


is it necessary to write struts-confing.xml ,what tags are important in that xml file?

2 Answers  


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

2 Answers   TCS,


Why actionservlet is singleton in struts?

0 Answers  


Explain the life cycle of a request in struct2 application?

0 Answers  


Can you explain struts validator framework?

0 Answers  


Categories