How to forward the session entries through href
Posted on 2008-10-30
I'm developing a site in jsp and it passes the session and its attributes when I go to any JSP page through servlet. But when I go to one JSP page to another via href="<% response.encodeURL("my URL?someParameter=1")%>"> ,it takes me there but losses the session entries and there shows me null session.
I'm in situation where I need to use href-links to move to another JSP page. My question is how can I use RequestDispatcher or anything else in href link through which my next JSP page could get the attributes of the session and do not show the sessionAttributes as null.