Hi,
try it with:
session.putValue("hello","abcd");
ahfei <[EMAIL PROTECTED]> wrotes at 25.04.00:
> dear all:
>
> i made a test jsp program to study URL rewriting ,but it seems don't work. .
>
> test1.jsp
> <%
> session.setAttribute("hello","abcd");
> response.sendRedirect(response.encodeRedirectURL("test2.jsp"));
> %>
>
> test2.jsp
> <%
> out.println(session.getAttribute("hello"));
> %>
>
> when i run the test1.jsp with cookie disabled,url rewriting don't work, and
>test2.jsp return a null string.
>
> can somebody help me?
>
> thanks in advance!
>
>
>
> ahfei
> [EMAIL PROTECTED]
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets s_ux
_______________________________________________________________________
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
[EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets