Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request scoped form  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!