This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
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
 
wood burning stoves
 
subject: Changing the content of HTML dynamically from a JSP
 
Similar Threads
Pass radio button to servlet
submit button
Dynamically Enable Submit Button
Redrawing the UI
Value from select element is null in request