This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes request scoped form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "request scoped form" Watch "request scoped form" New topic

request scoped form

Ravi Seshu
Ranch Hand

Joined: Mar 19, 2005
Posts: 38
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

Joined: Feb 15, 2005
Posts: 4864
Please carefully read this article. It will show you several different ways to solve the problem you are experieincing.

Consultant, Sima Solutions
jQuery in Action, 2nd edition
subject: request scoped form