I have this rewrite rule:

<rewrite-dispatch>
   <forward
     regexp="/here/.*/([0-9]+)\??(.*)"
     target="/there.jsp?id=$1&amp;$2"
   />
</rewrite-dispatch>

Which is supposed to do this:

when resin sees this:
/here/12345?x=1

it should forward to this:
/there.jsp?id=12345&x=1

but actually it is forwarding to this:

/there.jsp?id=12345&


It seems that the \? isn't recognizing a literal question-mark, or  
what seems more likely, the query-string is parsed out and not  
available from that variable. I would be satisfied any way I can  
insert the query-string, so if there is some other way of entering  
that in the target, I'd use that.

I tried:


target="/there.jsp?id=$1&amp;${query-string]"

but that didn't help.

Any ideas?


Bernie


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to