• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie -- Passing bean information while redirecting

 
Vedprakash Pathak
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I pass bean information to another page I am calling from within the servlet.

response.sendRedirect("myPage.jsp");

If yes then how do I read that bean in the jsp page.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you will have to attach the bean to the session.
sendRedirect does NOT call the redirect url directly, it is a command to the browser to go to the new url.
Bill
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And maybe call before sendRedirect()? Is this always necessary?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic