Re: [solved] Handling extra long set of query parameters

Splash Forums PrettyFaces Users [solved] Handling extra long set of query parameters Re: [solved] Handling extra long set of query parameters

#19997

tdruttenberg
Participant

Lincoln, the code you posted in my other other posting about the ClassCastException works just fine.

FTR here it is

public class RemoveEmptyParams implements Processor

{

public String process(final RewriteRule rule, final String url)

{

String result = url.replaceAll(“\?[^=]+=&”, “?”);

result = result.replaceAll(“&[^=]+=&”, “&”);

result = result.replaceAll(“&[^=]+=$”, “”);

return result;

}

}

I’m all set now. Thanks!