Re: S2 + REST urls

2008-08-26 Thread alvins
Hi guys, Sorry to bring up an old thread but we really should get this patched - I am testing out the latest struts with rest and this causes quite a-bit of a head-ache. I have resorted to extending Struts FilterDispatcher and putting some code to chain the request if it matches prefixes set

Re: Re: S2 + REST urls

2007-07-30 Thread Aram Mkhitaryan
I do not understand well. Do you mean to create new package in sruts.xmland add an action which serves static content ? Exactly, Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile: +374 91 518456 E-mail: [EMAIL PROTECTED]

Re: S2 + REST urls

2007-07-30 Thread meeboo
At the moment we are using URLRewrite to bypass all the trouble with S2 intercepting static content (we are also not using any action extension). But it would be even better if the filter was patched :) Ted Husted wrote: It's possible that the use case of a an empty action extension was not

Re: S2 + REST urls

2007-07-27 Thread Ian Roughley
I have found the order is important in the struts.xml file - i.e. if you are changing a property that is being used by another (say the names of the mappers for the CompositeActionMapper), you need to add the declaration of the property and then define the object (the CompositeActionMapper)

Re: Re: S2 + REST urls

2007-07-27 Thread matihost
First of all, put that constants in struts.properties file next to struts.xml there are some problems with constants defined in struts.xml, some of them does not work correctly Yes, you are right, for example constant struts.locale still is not loaded correctly when it is in struts.xml file.

Re: S2 + REST urls

2007-07-26 Thread Ted Husted
It's possible that the use case of a an empty action extension was not considered when the filter was first designed. It does seem like a valid use case, and it may be time to patch the filter. -Ted. On 7/26/07, matihost [EMAIL PROTECTED] wrote: I wondering why filter dispatcher do not check

S2 + REST urls

2007-07-26 Thread matihost
Hi everyone What is the best practice to use REST url notation in Struts2 application ? Does anyone have successful solution ? Below are my consideration about the available solutions: I used /* filter mapping for struts filter and set constant name=struts.enable.DynamicMethodInvocation

Re: S2 + REST urls

2007-07-26 Thread Aram Mkhitaryan
First of all, put that constants in struts.properties file next to struts.xml there are some problems with constants defined in struts.xml, some of them does not work correctly Then, you can create your namespace and mappings for images and csses, this will add security, and you will be able to