aspose file tools*
The moose likes Struts and the fly likes JSP Page when submitted, List becomes empty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP Page when submitted, List becomes empty" Watch "JSP Page when submitted, List becomes empty" New topic
Author

JSP Page when submitted, List becomes empty

Hafiz Abdulla
Greenhorn

Joined: Aug 01, 2011
Posts: 9
[color=brown][tt][/tt][/color]




Im using the above code in JSP..
I have a method populate() which sets the value in the form..
The content which i am setting in the action, is being displayed on the screen..
But when i submit the jsp, the list "primaryList" is becoming empty....
Please help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61589
    
  67

Welcome to the Ranch.

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.

Also, brown text on tan isn;t very readable. Rather, please UseCodeTags to set your code apart.

Good luck with your question.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hafiz Abdulla
Greenhorn

Joined: Aug 01, 2011
Posts: 9
thanks for the response..
Raja Pal
Ranch Hand

Joined: Jul 12, 2004
Posts: 92
Please note the disabled = "true" property in several cases(IE 6+) will restrict the data of the select box to get submitted. Instead you may want to choose readonly="true". The list will be then pouplated as expected.


Java Pal - Your friend in technology and innovation...India.
Hafiz Abdulla
Greenhorn

Joined: Aug 01, 2011
Posts: 9
i tried removing disabled = "true" property .. But no luck...
Raja Pal
Ranch Hand

Joined: Jul 12, 2004
Posts: 92
Sorry about that...I misread the unformatted code in a hurry. With the better formatting now, it looks more readable. I was referring only to the primDetails, division property in the "select" when I wrote that last comment, about disabled.
Hafiz Abdulla
Greenhorn

Joined: Aug 01, 2011
Posts: 9
I tried changing the scope in struts config to 'Session'..
Now the list values are coming while submitting..
But if i modify some thing on screen, say a text field which is inside that list, after submitting i am getting old value only..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Page when submitted, List becomes empty