The reason behind this problem is that TagConstants.AMPERSAND is used in the
Href.toString() method that generates the URL for the sort operation.
TagConstants.AMPERSAND is set to "&" so there's no way to control
whether hrefs use & or &.  I filed a bug on this in DisplayTag Jira.

Rick Herrick
[EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:displaytag-user-
> [EMAIL PROTECTED] On Behalf Of Rick Herrick
> Sent: Wednesday, January 05, 2005 5:02 PM
> To: [email protected]
> Subject: [displaytag-user] Prevent sort and paging URLs from encoding
> 
> I'm using displaytags to handle tables in a portlet.  The Epicentric
> portal just makes a basic HTTP request to my app, which returns some HTML.
>  For the most part this works well, except that all of the links in the
> code I return get intercepted and proxied by the portal.
> 
> The problem is that displaytags encodes meaningful characters in the URLs
> that are generated automatically, e.g. a sort link looks something like
> this:
> 
> /Promotions/test.do?d-2708187-s=2&d-2708187-o=2
> 
> When the portal proxies this, it re-encodes the ampersand, resulting in:
> 
> /Promotions/test.do?d-2708187-s=2&d-2708187-o=2
> 
> This causes me to lose these parameters.  Then, when you click on the sort
> links, the passed-back parameters get replicated, meaning that the rogue
> "amp;" strings get replicated as part of the parameter names, resulting in
> something like this:
> 
> &d-2708187-o=2
> 
> Not what I'm going for!
> 
> So the question is, is there any way to instruct displaytags to NOT do
> this encoding and produce a link with just plain ol' unencoded ampersands?
>  Or is there another workaround for this?
> 
> Thanks!
> 
> --
> Rick Herrick
> [EMAIL PROTECTED]
> 
> Proud member of the reality-based community
> 
> Never try to discourage thinking for you are sure to succeed.--Bertrand
> Russell
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to