• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

request scoped form

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a problem with request scoped form in my struts application.

i created actionform with list as its form field, and in the jsp page i am using this list which includes
list of objects of my model class to display few items. When submitting the form i receive Indexoutofbounds
exception. i know that a new form is created for request scoped form when submitted, then the list values
are assigned to the form list.


but can anyone suggest me regarding this, previously i used session scoped form where old form object is
used to populate the data. Is there a way i can use request scope form having list/arraylist as its field
and i can render those updated values to my action class...


i tried putting print statement in my action (DispatchAction) method as first stmt...but no use,

any help is strongly appreciated...
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please carefully read this article. It will show you several different ways to solve the problem you are experieincing.
 
reply
    Bookmark Topic Watch Topic
  • New Topic