Hi,

On Thu, Feb 19, 2009 at 10:21 AM, Wim De Smet <krom...@gmail.com> wrote:
> Hi,
>
> On Wed, Feb 18, 2009 at 4:47 PM, Bill Stilwell <bill.stilw...@gmail.com> 
> wrote:
>> It took me a while to get the rewrite rule working. I can't remember
>> if the problems were the same as yours, but the solution was to not
>> put the query parameters in the <to> but rather use <set
>> type="parameter">.
>
> So if I understand correctly you parse out every parameter (if there's
> more than one) and then use <set type="parameter"> once for every
> parameter? I'm thinking this might actually work, I'll give it a try
> soon and let you all know how it turns out.

I did some more thinking on this and some testing. First of all,
getting the parameters out of the query string will be kind of hard,
since urlrewritefilter uses regexes to match and thus I'll either be
committing to having the arguments in a certain order or I won't be
able to parse out the individual parameters, which is suboptimal at
best.

I tried rewriting without including the query string, but for some
reason struts then doesn't pick up on the get parameters, so if you
try to include them in an s:url it doesn't work. I'll try some more
things but I'm afraid I'll just end up having to give this up.

regards,
Wim

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to