• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scoping issue

 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic