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 Need to diplay values retrieved from a database in a table along with check box in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need to diplay values retrieved from a database in a table along with check box in Struts2 " Watch "Need to diplay values retrieved from a database in a table along with check box in Struts2 " New topic
Author

Need to diplay values retrieved from a database in a table along with check box in Struts2

Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
Hi,

I am not sure if i should be posting this under struts2 or jsp. But since the jsp tags differ when used with Struts2 I decided to post it here... so here goes... Like the subject Says, I am retrieving values from a database and displaying it as a table, with a check box to the left, to select a particular row if i want to.... this selected row will be subject to deletion or modification etc,

the code is as follows,


The result should be as follows,

select userid username designation
[] 44 vijee ase
[] 87 guna ita

but when i do run the code, my output is as follows,


select userid username designation
[]
44 vijee ase
[]
87 guna ita



Note: [] ----- > check box

Can you guys help me figure out what I did wrong?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

Struts 2 FAQ: Why do the form tags put table tags around controls


[How To Ask Questions On JavaRanch]
Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
hey thanks... figured it out....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to diplay values retrieved from a database in a table along with check box in Struts2