hi!
I m writing a jsp where i want the page content to change when the selected option from a combo changes...how do i execute the method that determines the code which will fetch that data....i guess i'' have to go with javascript but i dont think a java script func can read a server side file so please help....
memegha123
0
Newbie Poster
Recommended Answers
Jump to PostWhen the onchange method is called you can submit the form to a servlet. Then read the data and come back to the jsp.
Read the first post at the jsp forum for more details on how to connecti jsp and servlet with database
Jump to PostIf you want to call a java method you need to go to the server, so you need to submit.
The "select" part must be inside the form otherwise the what you have selected will not be send at the request.Just replace this call:
onchange = "distdisplay()"
with …
All 5 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
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.