Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the content of HTML dynamically from a JSP

 
Jehan Jaleel
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic