...but there is no ampersand in the link. What I wanted was to see the the
part where the ampersand is used.

Tib posted a link to the HTML 4.0 specification, where this issue is
discussed. So it seems that the form "page.do?a=1&b=2" is valid, when
I've understand right. So the problem is not your application, but "web
crawlers". 

Why do web crawlers crawl URIs like "page.do?a=1&b=2" anyway? Shouldn't
the just grab the "page.do" without the parameters?

Bernhard

-----Urspr�ngliche Nachricht-----
Von: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. Februar 2003 14:37
An: [EMAIL PROTECTED]
Betreff: Re: Questions about html:link and & a m p ;


Hi,

Unfortunately, there is no 'filter' in the html:link tag.
My code looks like this:
<html:link forward="sell" styleClass="LargeBoxHeader">sell</html:link>

Kind regards,
Morten Raahede Knudsen

"Hirschmann, Bernhard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Could you post the JSP code snippet for the link you're creating?
>
> As far as I know, no filter is used for creating the link. But as you
> described, it seems that the & is transformed in HTML encoding. You may
try
> the attribute filter="false" in the html:link tag.
>
> Bernhard
>
>
> -----Urspr�ngliche Nachricht-----
> Von: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 27. Februar 2003 12:45
> An: [EMAIL PROTECTED]
> Betreff: Questions about html:link and & a m p ;
>
>
> Hi
>
> We are currently using Struts 1.02 at our site with satisfaction. However
we
> are having some problems with the html:link tag. Some clients, for example
> some web crawlers, are not able to accept the form the parameters are
> written in:
> Example:
> page.do?a=1&amp;b=2
>
> When some clients see this, they request that exact string. And
> request.getParameter() fails in th Action instance.
> Is there any reason why page?a=1&b=2 isn't used instead.
>
> Kind regards,
> Morten Raahede Knudsen
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to