Hi everyone,
I'm using jsp1.0 where I have a sequence of pages with a session-scoped
bean which keeps information about the user. Now this, as you all know,
works perfect as long as the user accepts cookies, but if he doesn't
then the result will be a nullpointerexception... Now I think there's a
way to work around this problem, maybe by using something called
encodeURL which is very briefly explained on page
http://java.sun.com/docs/books/tutorial/servlets/client-state/session-tracking.html
Can this be done with jsp1.0, or is there another way of doing it? For
example, let's say I have these two pages, how would I rewrite these so
they would work for browsers without cookie-support...
page1.jsp
<jsp:useBean id="bean" class="bean.Bean" scope="session" />
<body>
<% bean.setHelloString("Hello");%>
<a href="page2.jsp">Link</a>
page2.jsp
<jsp:useBean id="bean" class="bean.Bean" scope="session" />
<body>
<%String str = bean.getHelloString(); out.println(str);%>
If anyone knows how this could be done or where I could find information
about how it can be done, it'd help me a lot...
/Tommy
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".