This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Changing the content of HTML dynamically from a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Changing the content of HTML dynamically from a JSP" Watch "Changing the content of HTML dynamically from a JSP" New topic
Author

Changing the content of HTML dynamically from a JSP

Jehan Jaleel
Ranch Hand

Joined: Jan 16, 2001
Posts: 38
Hello,
I have an on-line quiz that I want like to implement as a JSP.
The format is something like this...
What is the color of the sky?
<radio button> blue
<radio button> green
<radio button> red
<submit button>
When the submit button is pressed I want to run some Java code that checks if the response is correct, updates the score and changes the content of question field and radio buttons.
The last of these is what I am stuck on. None of my books show how to chanage HTML content dynamically from inside a scriptlet.
Thanks in advance for any help,
Jehan
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Changing the content of HTML dynamically from a JSP
 
Similar Threads
Redrawing the UI
submit button
Value from select element is null in request
Pass radio button to servlet
Dynamically Enable Submit Button