Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cookies

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we know that Headers and cookies set by a page
are not visible in forwarded and included pages. Then
how we can maintain the state in such type of
situations
 
stan ioffe
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're submiting to a servlet that then redirects the request using a forward or an include, you can create session variables in the included servlets or you can create attributes using .setAttribute() method that can later on be retrieved from an HttpSesssion object on your final destination's page.

-stan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic