hi!
this is what i m trying to do i m trying to display a form which has a drop down menu n a table displaying some basic data....now i want once user selects an item i want the form to submit to itself with the selected item as parameter..n refresh the table contents based on that...
now where i m stuck is that how do i check if the form has been submitted or it's the first time the form is displayed....
then how do i obtain the request parameter to display the contents based on selected item
Im using JSP's ...pls help
memegha123
0
Newbie Poster
Recommended Answers
Jump to PostFirst of all you will need javascript: http://www.w3schools.com/default.asp
There is the onchange function. You can have the form submit there:
…<form name="formName" action=""> <select name="param" onchange="document.formName.submit()"> ... </select> </form>
All 3 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
memegha123
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.