tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: XTAGS space amp; space problem
Date Thu, 15 Nov 2001 19:52:45 GMT
Hi Howard

Remember that in XML and HTML that & is a reserved symbol used to denote the
start of an entity so that it must be escaped as &amp;

So some XML containing a URL with a link with & would look like this

<link>http://server.com/someapp.jsp?id=27&amp;name=james</link>

If you edit your XML document to properly encode the & characters to &amp;
it'll probably work fine.

Just to be sure,. I've committed a new test case in
xtags/examples/web/test/test_amp.jsp that creates a href and displays a href
that includes an ampersand inside it and it appears to work fine.

James
----- Original Message -----
From: "Moore, Howard" <Howard.Moore@Starbase.com>
To: "'Tag Libraries Users List'" <taglibs-user@jakarta.apache.org>
Sent: Thursday, November 15, 2001 4:40 PM
Subject: RE: XTAGS space amp; space problem


>
> James,
>
> Sure.
>
> To reproduce the possible space_ampersand_space problem with XTAGS...
>
> - Take the Simple RSS Example
>
> - Either create an RSS file who's <link> tags contain ampersand-included
> links such as;
> <link>httppp://server.com/someapp.jsp?id=27&name=bubba</link>
>
> A simple way to do this is to just save the moreover.com RSS file to disk
> and alter the URL's to include ampersands.
>
>
> - Next point the Simple RSS example parser/transform at your contrived RSS
> file and see if the URL's break.
>
>
> Howard
>
>
>
>
>
>
> -----Original Message-----
> From: James Strachan [mailto:james_strachan@yahoo.co.uk]
> Sent: Thursday, November 15, 2001 12:26 AM
> To: Tag Libraries Users List
> Subject: Re: XTAGS space amp; space problem
>
>
> Hi Howard
>
> I've never noticed that before. Could you give us an example of how to
> reproduce this problem?
>
> James
> ----- Original Message -----
> From: "Moore, Howard" <Howard.Moore@Starbase.com>
> To: <taglibs-user@jakarta.apache.org>
> Sent: Thursday, November 15, 2001 12:13 AM
> Subject: XTAGS space amp; space problem
>
>
> > Greetings,
> >
> > Anyone notice XTAGS parses an ampersand in a URL then seems to put a
space
> > on either side of it?
> >
> > Behavior seems to happen if amp; or & is used.
> >
> > output example: http://server/dosomething.jsp?name=bubba
> > <http://server/dosomething.jsp?name=bubba>  & id=47
> >
> > The SPACE before and after the ampersand breaks the URL as  you have
> > probably guessed.
> >
> >
> >
> > Has this been addressed before or has anyone experienced this behavior?
> >
> >
> > Howard
> >
> >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message