Re: How to set filter in Struts2?

2007-04-19 Thread Drew Kutcharian
} } Then in web.xml UTF-8 com.acme.filter.UTF8Filter ISO8859-1 com.acme.filter.ISO88591Filter UTF-8 /getProductsInternational* ISO88591 /getProductsLocal* hope this helps. cheers, Drew Kutcharian Venarc Inc. www.venarc.com - Origin

Re: How to set filter in Struts2?

2007-04-19 Thread Drew Kutcharian
Can you use different filters/filter mappings for different URL patterns? Drew Kutcharian Venarc Inc. www.venarc.com - Original Message From: red phoenix <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Thursday, April 19, 2007 7:58:47 PM Subject: How to set fil

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Drew Kutcharian
A little suggestion. Inside the interceptor, you can also put the User in the ActionContext or your own custom ThreadLocal so you can use that all over the stack for permissions/roles/etc as an alternative to say Acegi. Cheers, Drew Kutcharian Venarc Inc. www.venarc.com - Original

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Drew Kutcharian
You probably need to write a custom Interceptor. Struts 2 has a very nice feature called interceptors which is sort of like AOP which is great for cross-cutting problems e.g authentication. http://struts.apache.org/2.x/docs/interceptors.html Cheers, Drew Kutcharian Venarc Inc

Re: Does anyone know how to use Restful2ActionMapper??

2007-04-17 Thread Drew Kutcharian
te'] PUT: /users/1 => [:action => 'update', :id => 1] DELETE: /users/1 => [:action => 'destroy', :id => 1]also be able to do things like: GET /category/managers/users (which returns all the users under category 'managers') GET /category/ma

Does anyone know how to use Restful2ActionMapper??

2007-04-17 Thread Drew Kutcharian
Hi Everyone, Can anyone explain to me how I can use the new Restful2ActionMapper? I was not able to find detailed documentation on it anywhere on the web. I am trying to write a Rails style RESTful app in Java. Thanks, Drew Kutcharian Venarc Inc. www.venarc.com