• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JSP Page when submitted, List becomes empty

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

[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
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Hafiz Abdulla
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the response..
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Hafiz Abdulla
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i tried removing disabled = "true" property .. But no luck...
 
Raja Pal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Did you just should on me? You should read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic