Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Omar Ngarigari
Which annotation type should I use in my actiom class to inject user object? Sent from my iPhone On Mar 20, 2013, at 2:14 AM, Lukasz Lenart wrote: > 2013/3/20 Omar Ngarigari : >> > value="%{springSecurity.currentUser}"/> > > You cannot call interceptor directly, it must be an action. > >>

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Lukasz Lenart
Thus defined in your mail ... 2013/3/20 Omar Ngarigari : > Which annotation type should I use in my actiom class to inject user object? > > Sent from my iPhone > > On Mar 20, 2013, at 2:14 AM, Lukasz Lenart wrote: > >> 2013/3/20 Omar Ngarigari : >>> >> value="%{springSecurity.currentUser}"/> >> >

Re: Struts2: Problem with form fields

2013-03-20 Thread Dhananjay Makwana
Thanks for solution. I followed [2] and it works perfectly. Now any suggestions/patterns for implementations of "acceptableParameterName(String)" method, apart from the obvious checking of parameter startWith, endsWith etc.? On 3/19/13 5:41 PM, Lukasz Lenart wrote: 2013/3/19 Dhananjay Makwana :

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Eric Chatellier
Le 18/03/2013 14:12, Lukasz Lenart a écrit : > > It is related to that issue [1], but I'm still wondering if it is the > correct way to solve it (revert the change) as this prevent properly > handling static resources and you must defined an empty action which > basically is wrong as http server mu

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Lukasz Lenart
2013/3/20 Eric Chatellier : > Is there any working solution with 2.3.12 ? > > tried some configurations with > > index > > but doesn't seems to work yet... The problem with is that by Servlet Spec only static resources can be defined as a welcome file, thus leads to solution like: - defin

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Dave Newton
There's that filter config solution, but I can't find a good reference to it at the moment. http://stackoverflow.com/questions/8071137/struts-2-execute-action-instead-of-welcome-file/8071249#8071249 Gives the overview, however. Dave On Wed, Mar 20, 2013 at 9:57 AM, Lukasz Lenart wrote: > 201

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Paul Benedict
What I've suggested before -- but haven't done anything about it -- is to allow the struts.xml packages to have an index action. This will execute if the package is specified but no action. This is different than a default action. Paul On Wed, Mar 20, 2013 at 9:02 AM, Dave Newton wrote: > There

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Omar Ngarigari
I annotated my action class as follow: @Target({java.lang.annotation.ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface SpringSecurityPrincipal {     public String getUsername(); } in my action class public class AddAction extends ActionSupport implements ModelDriven{

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Lukasz Lenart
It doesn't work that way, check once again Hernán's mail, he showed you interceptor, annotation and how to define a stack. You just must add annotation into your action. 2013/3/20 Omar Ngarigari : > I annotated my action class as follow: > > @Target({java.lang.annotation.ElementType.METHOD}) > @Re

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Lukasz Lenart
2013/3/20 Paul Benedict : > What I've suggested before -- but haven't done anything about it -- is to > allow the struts.xml packages to have an index action. This will execute if > the package is specified but no action. This is different than a default > action. You mean an additional attribute: