Try
<%
String name =(String)session.getAttribute("MyName");
%>
<%= name%>

----- Original Message -----
From: Anjana M <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 6:50 PM


> Hi,
> I just tried a simple url rewriting test and it does nt pass on the
session
> information when i disable cookies.
>
> My first jsp is test.jsp is as follows
> <%
> String url = response.encodeURL("/testa.jsp");
> session.setAttribute("MyName","aaaa");
> %>
>
> <body>
> <form action="<%=url%>" method="post">
> name <input type=text name=loginID >
> id <input type=text name=loginPassword >
> <BR>
> <input type=submit value=submit>
> </form>
> </body>
> </html>
>
> and my second page testa.jsp is
> <%
> String name =(String)session.getAttribute("MyName");
> out.println("name is as foll " + name);
> %>
> I am runnning Apache and Tomcat. Am i missing something ?
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
===========================================================================
> 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
>

===========================================================================
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

Reply via email to