You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wolle <mw...@web.de> on 2001/04/02 01:03:49 UTC
BUG in encodeURL Mehtode ?
Hello,
it seems that I have found a Bug in the response.encodeURL Methode,
and perhaps in the response.encodeRedirectURL.
System: Suse7.1, Tomcat 3.2.2b2 and
Win2k , Jbuilder4 (Tomcat3.2.1).
When I use the encode Methode in a valid session , it will extends the
ending of the URL with the Session.
http://www.bla.blub.com -> http://www.bla.blub.com;jsessionID=gdxcvrtw
Thats fine.
when I use the Methode on a link with GET parameters:
http://www.bla.blub.com?param1=bla¶2=bla ->
http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla
that's also fine.
when I use the Methode on a link with GET parameters an a anchor
http://www.bla.blub.com?param1=bla¶2=bla#anchor1 ->
http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla#anchor1
thats also fine, too
BUT when I have a Link only with a anchor, it won't be work:
http://www.bla.blub.com#anchor1 ->
http://www.bla.blub.com#anchor1;jsessionID=gdxcvrtw
and this i thing will be pasred wrong, so tomcat think there is no
session.
Some workaround is that you manual set the anchor later:
encURL = response.encodeURL("www.test.com#anchor");
TO
encURL = response.encodeURL("www.test.com") + "#anchor";
--
java : legacy system for NT and Linux ?
Posted by Joel Cordonnier <jo...@yahoo.fr>.
Hi
I'm a new user of Tomcat 3.2, and I wonder if someone
now if some free (portable?) legacy system exist ?
Thanks
Joel
___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
Yahoo! Messenger : http://fr.messenger.yahoo.com
Re: How to use XML ?
Posted by "Heo, GwangNam" <he...@popsmail.com>.
place xerces.jar file in your
jdk/jre/lib/ext
and restart tomcat
you can get it from http://xml.apache.org xerces - java
that's all. (I know)
here is sample codes
okjsp.jsp
<%@ page contentType="text/html;charset=euc-kr" %><%String [][] x = { {"1","a"}, {"2","b"}, {"3","c"}, {"4","d"}, {"5","e"}};%><?xml version="1.0" encoding="euc-kr" ?><?xml-stylesheet type="text/xsl" href="okjsp.xsl" ?><phone><%for (int i=0;i<x.length;i++) { %> <member> <name><%=x[i][0] %></name> <title><%=x[i][1] %></title> </member><%} %></phone>
okjsp.xsl
<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <table border="2" cellpadding="2"> <tr> <td>name</td> <td>title</td> </tr> <xsl:for-each select="phone/member"> <tr> <td><xsl:value-of select="name" /></td> <td><xsl:value-of select="title" /></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template></xsl:stylesheet>
from : http://my.dreamwiz.com/heogn/lecture/lec07/xml01.htm
----- Original Message -----
From: "Gilson do N. D'Elrei" <gi...@uol.com.br>
To: <to...@jakarta.apache.org>
Sent: Monday, April 02, 2001 9:05 AM
Subject: How to use XML ?
> Everyone have a good tutorial about use of JSP/Servlet and XML. Please not
> sun.com, i have all. I need of practice samples about use of XML with
> JSP/Servlets.
> thanks in advance.
>
>
How to use XML ?
Posted by "Gilson do N. D'Elrei" <gi...@uol.com.br>.
Everyone have a good tutorial about use of JSP/Servlet and XML. Please not
sun.com, i have all. I need of practice samples about use of XML with
JSP/Servlets.
thanks in advance.