aspose file tools
The moose likes Struts and the fly likes Scoping issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Scoping issue
 
Similar Threads
struts2 validation result input cannot be an action?
Combo box building
request scoped form
page not showing, need tips on debugging
DynaValidatorForm not redisplaying scoped variables