Re: Accessing properties set in struts.xml and/or struts.properties

2009-03-01 Thread Andreas Joseph Krogh
On Sunday 01 March 2009 02:48:31 Jeromy Evans wrote: > Hi Andreas, > > The perfect place to filter the URLs is before they reach the > Container at all. > The next-best place is within a custom ActionMapper as Jelmer > suggested as that's what it's designed for. I don't think you'll gain >

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-28 Thread Jeromy Evans
Hi Andreas, The perfect place to filter the URLs is before they reach the Container at all. The next-best place is within a custom ActionMapper as Jelmer suggested as that's what it's designed for. I don't think you'll gain much performance filtering before the ActionMapper and it will con

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-27 Thread Andreas Joseph Krogh
On Friday 27 February 2009 08:50:16 Jelmer Kuperus wrote: > I implemented something similarar while back by implementing a custom > actionmapper. You can then set that one as the default by changing a > property > > It allowed me to get the behaviour i wanted without changing any > struts co

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-27 Thread Andreas Joseph Krogh
On Thursday 26 February 2009 17:45:52 Chris Pratt wrote: > You might have to specify it as a servlet filter init parameter instead of > relying on struts.xml/properties. > (*Chris*) Yes, I know that would do the trick, but my ambition was to keep all Struts2-related config in *one* place (strut

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-26 Thread Jelmer Kuperus
I implemented something similarar while back by implementing a custom actionmapper. You can then set that one as the default by changing a property It allowed me to get the behaviour i wanted without changing any struts code. I remember there being some gotchas tho. Personally i think exc

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-26 Thread Chris Pratt
You might have to specify it as a servlet filter init parameter instead of relying on struts.xml/properties. (*Chris*) On Thu, Feb 26, 2009 at 3:18 AM, Andreas Joseph Krogh wrote: > On Wednesday 25 February 2009 22:27:25 Andreas Joseph Krogh wrote: > > Hi all. > > I would like to extend the str

Re: Accessing properties set in struts.xml and/or struts.properties

2009-02-26 Thread Andreas Joseph Krogh
On Wednesday 25 February 2009 22:27:25 Andreas Joseph Krogh wrote: > Hi all. > I would like to extend the struts2 servlet-filters with a config-option > telling it URI-patterns to exclude. My thoughts are to add a property: > > struts.action.url_exclude_pattern=/lang/.*,/pages/.* > > and have th

Accessing properties set in struts.xml and/or struts.properties

2009-02-25 Thread Andreas Joseph Krogh
Hi all. I would like to extend the struts2 servlet-filters with a config-option telling it URI-patterns to exclude. My thoughts are to add a property: struts.action.url_exclude_pattern=/lang/.*,/pages/.* and have the StrutsPrepareFilter, StrutsExecuteFilter and StrutsPrepareAndExecuteFilter ign