jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Scoping issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Scoping issue" Watch "Scoping issue" New topic

Scoping issue

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
I have my page in session. I have an array list that i am setting in the request scope in my action class using

This the action class for my home page which is taking me to a registration page. The registration page has another action class. I am populating a list box from the indArray that i have set in the request scope. When the register page gets submitted and there are errors my request objects go out of scope and rightfully so. How do i circumvent the issue?

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
ok i got this done. i checked if the request object was not null for the attribute and then set it to the session and from the session i set it back into the request object primarily because i was use the request attribute to display it back into the page.
It is sorta covered in the JavaRanch Style Guide.
subject: Scoping issue
Similar Threads
Combo box building
struts2 validation result input cannot be an action?
request scoped form
page not showing, need tips on debugging
DynaValidatorForm not redisplaying scoped variables