Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing the content of HTML dynamically from a JSP  RSS feed

Jehan Jaleel
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!