my dog learned polymorphism*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing the content of HTML dynamically from a JSP
 
Similar Threads
submit button
Redrawing the UI
Dynamically Enable Submit Button
Pass radio button to servlet
Value from select element is null in request