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

how to do a survey app ???

 
majid nakit
Ranch Hand
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you doing everybody,
I have a table in a database that has :
ID ,
Title,
Priority ( 1 or 2, or 3, or 4, or 5)

I want to have a survey with a form that is populated from that table :
it will show :
ID label - Title label - and 5 radio buttons
the user chose and check one radio button of each line and the at the end submit back to the database.

Please can you help on how to do it or do you have a survey example.

thanks, your help is appreciated.
 
Pankaj k.jain
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. You need to create a form containg id , title,priority , priorities[]. Store the available priorities in the String Priorities array from the Database
2. In the JSP using struts iterate on priorities create radio button having name priority.
3. When user populate the information and click on submit you can get the information in action by using form bean.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic