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 List in Form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "List in Form" Watch "List in Form" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: List in Form