tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whitefox <9for...@elong.com>
Subject Re: BugRat Report #32 has been filed.
Date Thu, 01 Jan 1970 00:00:00 GMT
hello1.jsp
<%@ page session="true" %>
<%
  Integer num = new Integer(100);
  session.putValue("num",num);
 String url =response.encodeURL("hello2.jsp");
%>
<a href='<%=url%>'>hello2.jsp</a>
hello2.jsp
<%@ page session="true" %>
<%
  Integer i= (Integer)session.getValue("num");
  out.println("Num value in session is "+i.intValue());
%>

the code above the lie  don't work normal,  but in one servlet same code can use to rewrite
url for working
Bug??? how to solve it?


>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

   Thanks,
Whitefox
----
Henry.jiang, programmer. 
asia.com inc.
tel:(0086)-010-65886448-729

            whitefox
            9foryou@elong.com


Mime
View raw message