| Author |
List in Form
|
Hafiz Abdulla
Greenhorn
Joined: Aug 01, 2011
Posts: 9
|
|
I have a list of objects of a bean with a single property in the form.
I want to display the property of the bean as a text box.
ie if the list contains three objects, i have to display 3 text boxes..
the display part is working fine..
But wen i submit the page, i am getting the list as empty..
Below is the code i am using in jsp
[color=violet][/color]
|
 |
Hafiz Abdulla
Greenhorn
Joined: Aug 01, 2011
Posts: 9
|
|
Above code i am using to set the values of the list..
and i am setting the list in the form
|
 |
Hafiz Abdulla
Greenhorn
Joined: Aug 01, 2011
Posts: 9
|
|
please help me if im doin any mistake..
now the scope is set as request in struts config..
and the list is coming as empty..
I tried setting the scop as session..
then i will get the list with values.. But if im modifying any text box from the screen, i wont get the new value..but im getting old value itself..
|
 |
Hafiz Abdulla
Greenhorn
Joined: Aug 01, 2011
Posts: 9
|
|
This part of code is from my struts-config.xml
|
 |
Hafiz Abdulla
Greenhorn
Joined: Aug 01, 2011
Posts: 9
|
|
this part is of the Form which i am using
|
 |
 |
|
|
subject: List in Form
|
|
|