Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session tracking problem

 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I can't perform session tracking, I cannot use JavaBean in the propagated JSP. When I create bean in the JSP which point at another JSP, the bean created in the first one under session scope, is perfectly extracted in the second JSP.

But, when I initialize bean from JSP, and go to the servlet (just to redirect to anothrt JSP page), the redirected page says that bean is null! It has a bean under session scope (regarding that no new bean is instantiated cause body of the


the servlet Checker, has code :



and the display.jsp




And I get that value of name and lastname are null!!!
Totally confusing...Does anyone have a clue?
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you are forwarding (rd.forward) to somewhere still inside your application, and not using response.sendRedirect(), can you try encodeUrl instead of encodeRedirectUrl? Let us know.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No it wont.
I try with RequestDispatcher - encodeURL()
then I try with redirecting res.sendRedirect(path) -encodeRedirectURL()
and it neither wont. I don't understand, how could I track then session if I can't by these two ways???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic