This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Scoping issue" Watch "Scoping issue" New topic
Author

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
request.setAttribute("indArray",indArray);

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?

Thanks
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scoping issue
 
Similar Threads
page not showing, need tips on debugging
DynaValidatorForm not redisplaying scoped variables
request scoped form
struts2 validation result input cannot be an action?
Combo box building