This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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?
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.
Joined: Sep 26, 2008
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???