Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

List in Form

 
Hafiz Abdulla
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Above code i am using to set the values of the list..
and i am setting the list in the form
 
Hafiz Abdulla
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This part of code is from my struts-config.xml
 
Hafiz Abdulla
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




this part is of the Form which i am using
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic