I found out what I was doing wrong..ampersand cannot be used in target.  It
must use & in place of ampersand.

 

<forward regexp="^/list/(.+)/(.+)/(.+).html$"
target="/productlist.jsp?sp=$1&amp;start=$2&amp;cid=$3"/>

 

From: resin-interest-boun...@caucho.com
[mailto:resin-interest-boun...@caucho.com] On Behalf Of Marketing -
IncorporateFast.com
Sent: Tuesday, September 07, 2010 11:25 AM
To: 'General Discussion for the Resin application server'
Subject: [Resin-interest] Resin Rewrite

 

Hi, 

 

I'm converting rewrite from apache to resin.  

 

How do I do this in resin?

 

RewriteRule /list/(.+)/(.+)/(.+)\.html
/productlist.jsp?sp=$1&start=$2&cid=$3 [PT]

 

I've been trying this..but resin is not happy with it.

 

  <rewrite-dispatch>

      <forward regexp="^/list/(.+)/(.+)/(.+).html$"
target="/productlist.jsp?sp=$1&start=$2&cid=$3"/>

   </rewrite-dispatch>

 

Thanks

 

Joey

 

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

Reply via email to