File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes There is Anything else which i can use as multibox, in while loop to taking values from Databse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "There is Anything else which i can use as multibox, in while loop to taking values from Databse." Watch "There is Anything else which i can use as multibox, in while loop to taking values from Databse." New topic
Author

There is Anything else which i can use as multibox, in while loop to taking values from Databse.

Vinod suryawanshi
Ranch Hand

Joined: Aug 08, 2012
Posts: 50
Hi friends,
I am trying to get values from database, in while loop. But i am taking more then one row at a time and Row size id not fixed,(Or you can say of n size row). I want to take and display those values in such a way, that latter i can edit then at run time.
in other words, i want my user will see details of all student in one page. where each row displaying details of one student. thise values i am taking directly from database, like mysql database. here i want my user to see all details of student like name, roll number, address and then grade. And latter if he want he can change his grade directly. The grade of student i am display in select box. whatever will be his grade he can directly see as selected value of select tag. But if user or admin, the person who having authority to change grade can directly select another grade from select box and save it. So that new change grade value will store in database.
Hope i explain the situation properly. if anybody have any idea related to this problem then please replay.
Also i want to mention one thing. i know multibox in jsp, but i dont think so, we should use multibox to store and select values. So there is any other option available like multibox in Struts or jsp. Please reply.
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Vinod,

you can try htmlptionscollection,options or similar controller which act like combo box. As it will also display the grades in box which user can select instead of checking the check box.

Jatan
 
 
subject: There is Anything else which i can use as multibox, in while loop to taking values from Databse.
 
Similar Threads
Display tag and Struts multibox tag
struts and multibox
Iterator and multibox
multibox , resultSet, logic:iterate
Struts1 - multibox uncheck action