wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 8836
    
    7

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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
 
Similar Threads
Struts2 variable inside javascript
pre-populating textfield befor form submit in struts2
How to retain automatically generated fields on pageload in struts2
Struts2 Checkbox: How to set value back to Bean
how to display mysql table datas in jsp using struts2