• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I dynamically read from radio button

 
Muyiwa Phillips
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a survey tool that pulls the questions and Answer options from the database in pure jsp no framework. As the question and answer options is been pulled from DB it dynamically generate radio button that is unique to the question and Answer options.

I will like to know how I can read through the questions and radio button selected and insert the selected answers option into the database.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While a JSP can be used to present the questions, the form should be submitted to a servlet not a JSP. JSPs are to present views, not perform data handling and processing.

As such I've moved this to the Servlets forum for any further discussion.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the servlet, the request.getParameter() method can be used to retrieve the information submitted by the HTML form.

There are a few variations, such as request.getParameterMap(), which will retrieve all the submitted values as a Map implementation.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic