File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to do a survey app ???" Watch "how to do a survey app ???" New topic

how to do a survey app ???

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 167
How are you doing everybody,
I have a table in a database that has :
ID ,
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

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.
Don't get me started about those stupid light bulbs.
subject: how to do a survey app ???
jQuery in Action, 3rd edition