You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Ariel Pablo Klein <ap...@luminafinance.com> on 2003/02/05 20:02:08 UTC

Browsers doesn't respond with incorrect URL encoding

What was the idea of encode the entire URL when the only that you need
to encode are the parameter values?

For example if you have this URL:
http://localhost/mainServlet?service=direct&sp=value1 , you don't need
reeconde it because if you do it, youll be encoding & to &amp; that's
unnecesary and wrong, and in my experience sometimes the browser doesn't
execute click event, but works fine while I do shift-click opening in a
new window. Other example can be about encoding # (anchor char), the #
mustn't be enconded.


This error is a misuse of links or it's a bug?


   private String constructURL(StringBuffer buffer, boolean
includeParameters)
    {

	.......................
	.......................
	.......................

        if (_stateful)
            result = _cycle.encodeURL(result);

        return result;
    }


Thanks
Ariel Pablo Klein

Pd: my english its poor.