Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request scoped form

 
Ravi Seshu
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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...
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please carefully read this article. It will show you several different ways to solve the problem you are experieincing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic