[EMAIL PROTECTED] wrote:

> Hi, i'm trying to use Servlet chaining with three servlets. In the first one
> i create a cession (if it doesn't exist), in the second one i put some
> attributes in the cession. But when i arrive in the third servlet, my
> session is null?
> As anybody already had this problem ?
>
> Is it possible to get the path of the servlet who called the last one ?
> I mean if i am in the ith servlet, how can i get the path of the (i-1)th
> servlet ?
> [...]

Hi :-)  I am not sure, I just suggest you to notice:

- do you use cookie or url-rewritting or other to make your session-tracking?
  if you are using url-rewritting, don't forget to use
  HttpServletResponse.encodeURL/encodeRedirectURL  to "encode the
  URL"(make a new URL which includes the JSESSIONID), I guess it
  is also possible to add JSESSIONID by myself with HttpSession.getId()

- from several emails, HttpSession is "within" a special webapp, so if in your
  Servlet-chain, you go to another Servlet-class which is in another webapp,
  now perhaps another new session will/need-to be made.


Bo
may.17, 2001


Reply via email to