Re: URL "format" advice

2010-09-06 Thread Greg Akins
Thanks Dale and Jordi; I started using a Filter to determine, but hadn't seen the wildcard mapping. That looks like just what I was looking for. On Mon, Sep 6, 2010 at 9:28 AM, Dale Newfield wrote: > On 9/6/10 6:27 AM, jordi wrote: >> >> You can do that with wildcard mappings. I'm using Advanced

Re: URL "format" advice

2010-09-06 Thread Dale Newfield
On 9/6/10 6:27 AM, jordi wrote: You can do that with wildcard mappings. I'm using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html Especially if you couple that with the Url Rewrite Filter. http://www.tuckey.org/urlrewrite/ -Dale

Re: URL "format" advice

2010-09-06 Thread jordi
You can do that with wildcard mappings. I'm using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html jordi On Wed, Aug 25, 2010 at 4:46 PM, Greg Akins wrote: > I need to implem

Re: URL "format" advice

2010-08-25 Thread chris
That sort of thing is probably best handled outside Struts in my opinion. A servlet filter which catches requests with that pattern /myapp/8 and then does a clean forward to blah?partner=8 - I do a similar thing in my app, but you then need to think about relative URLs for everything which then sit

URL "format" advice

2010-08-25 Thread Greg Akins
I need to implement a webapp that uses the URL to determine the "partner" that is accessing the application. I'd like your opinion on the way to do this that might work best with Struts. Right now, we use a querystring parameter to set a session value that is references throughout the application