Re: [Resin-interest] meaning of "/" in rewrite-dispatch
> Thanks for the reply Alex. So how would I match only "/" and ".html"? > Something like this? > > That looks right, Ethan. The parenthesis are optional here but they do make regexp more readable. Alex > > Cheers, > Ethan > > - Original Message - > From: "Alex" > To: "General Discussion for the Resin application server" > > Sent: Monday, November 30, 2009 2:52:45 PM > Subject: Re: [Resin-interest] meaning of "/" in rewrite-dispatch > > > I have a (hopefully) quick question about the meaning of "/" in regexp > > attributes of the rewrite-dispatch tags. For example: > > > > > > This will match any request that has a '/' (basically every request has a '/') > > Something like the following will change .html to .jsp > http://www.caucho.com/resin/admin/rewrite.xtp > > > > > > > Thanks, > Alex > > > ... > > > > > > Does the "/" have the same meaning as in servlet mappings, i.e. "default"? > > Or does it only match requests for "/"? That is, does the above > > match a request for "/foo.jpg", in addition to "/" and "/bar.html"? > > > > > > Thanks, > > Ethan > > ___ > > resin-interest mailing list > > resin-interest@caucho.com > > http://maillist.caucho.com/mailman/listinfo/resin-interest > > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] meaning of "/" in rewrite-dispatch
Thanks for the reply Alex. So how would I match only "/" and ".html"? Something like this? Cheers, Ethan - Original Message - From: "Alex" To: "General Discussion for the Resin application server" Sent: Monday, November 30, 2009 2:52:45 PM Subject: Re: [Resin-interest] meaning of "/" in rewrite-dispatch > I have a (hopefully) quick question about the meaning of "/" in regexp > attributes of the rewrite-dispatch tags. For example: > > This will match any request that has a '/' (basically every request has a '/') Something like the following will change .html to .jsp http://www.caucho.com/resin/admin/rewrite.xtp Thanks, Alex > ... > > > Does the "/" have the same meaning as in servlet mappings, i.e. "default"? Or > does it only match requests for "/"? That is, does the above match > a request for "/foo.jpg", in addition to "/" and "/bar.html"? > > Thanks, > Ethan > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] meaning of "/" in rewrite-dispatch
> I have a (hopefully) quick question about the meaning of "/" in regexp > attributes of the rewrite-dispatch tags. For example: > > This will match any request that has a '/' (basically every request has a '/') Something like the following will change .html to .jsp http://www.caucho.com/resin/admin/rewrite.xtp Thanks, Alex > ... > > > Does the "/" have the same meaning as in servlet mappings, i.e. "default"? Or > does it only match requests for "/"? That is, does the above > match a request for "/foo.jpg", in addition to "/" and "/bar.html"? > > Thanks, > Ethan > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] meaning of "/" in rewrite-dispatch
I have a (hopefully) quick question about the meaning of "/" in regexp attributes of the rewrite-dispatch tags. For example: ... Does the "/" have the same meaning as in servlet mappings, i.e. "default"? Or does it only match requests for "/"? That is, does the above match a request for "/foo.jpg", in addition to "/" and "/bar.html"? Thanks, Ethan ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest