This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes how to do a survey app ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to do a survey app ???" Watch "how to do a survey app ???" New topic
Author

how to do a survey app ???

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 164
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

Joined: Sep 21, 2007
Posts: 3
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
 
subject: how to do a survey app ???