Re: Basic security problem

2010-04-16 Thread Juan Chung
place your right control check in a filter, i.e whenever the user send a request to the server, retrieve its right information then compare the request uri, if match, the user has been granted to do so, or does not have the proper right. good luck. On 04/16/2010 10:36 AM, Stephane Cosmeur wrot

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread Denis Cabasson
As of struts 2.1.8, you have (well can, but it's recommended) use the struts2-json-plugin rather than the googlecode version (the google code one has been transferred to apache as a struts 2 plugin). To do that, just use the class name org.apache.struts2.json.JSONResult (see http://struts.ap

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
>> you must expose you model directly. I'm not sure what you mean by that... Can you restate? MG -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, April 16, 2010 9:53 AM To: Griffith, Michael * Cc: Struts Users Mailing List Subject: Re: How to r

Re: How to reuse field validators?

2010-04-16 Thread Lukasz Lenart
W dniu 16 kwietnia 2010 16:27 użytkownik Griffith, Michael * napisał: > Currently the xml file is in the package with the struts action.  I this this > is where my problem lies, should it be in the model package? Yes, and you must expose you model directly. Regards -- Łukasz http://www.lenart

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread Dale Newfield
Or just -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Basic security problem

2010-04-16 Thread Dale Newfield
Hand-rolled security almost always has many holes. I would suggest using spring security. Cimballi wrote: One way to do it it to have a super action with a permission property, and you set the permission property with a static param in your struts xml files using the StaticParameters intercepto

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
Currently the xml file is in the package with the struts action. I this this is where my problem lies, should it be in the model package? MG -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, April 16, 2010 9:26 AM To: Griffith, Michael * Subjec

Re: Struts vs SpringMVC

2010-04-16 Thread Stephen Turner
On Thu, 15 Apr 2010 22:04:53 -0400, Frans Thamura wrote: have anyone read this? http://www.java4learners.com/struts/faq/what-are-advantages-spring-mvc-over-struts any comment? Kind of bizzare to publish

Re: Using json in Struts 2.1.8.1

2010-04-16 Thread sharath karnati
Hi sameer,      In  struts 2.1.8.1 having 'struts2-dojo-plugin-2.1.8.1.jar' file so we don't need to use 'jsonplugin-0.34.jar'  for using json.  This is my understanding :)      If we are not including 'jsonplugin-0.34.jar' then we cannot use "com.googlecode.jsonplugin.JSONResult"      With new S

RE: How to reuse field validators?

2010-04-16 Thread Griffith, Michael *
Maybe I didn't express my problem correctly. The @SkipValidation annotation marks an Action method not to be validated. I want to reuse the field validations in -validator.xml in two different Action classes in two different packages and different namespaces. Is there a way to do that without

Re: Struts2 XML based validation doesnt work !

2010-04-16 Thread Lukasz Lenart
2010/4/16 nandyiyer : > I'm trying to include XML based validation in my application ? > > This is part of my struts.xml - >                http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe,

Struts2 XML based validation doesnt work !

2010-04-16 Thread nandyiyer
Hello all , I'm trying to include XML based validation in my application ? This is part of my struts.xml - /body_displayAddAuctionItem.jsp /

RE: Basic security problem

2010-04-16 Thread adam pinder
if your security is simple - fixed roles to access certain actions... i created a custom role interceptor added it to the interceptor stack and then just added struts.xml definitions with member the allowedRoles value can be comma separated to allow multiple r