Re: Catch the element param in a action class

2008-01-11 Thread Manoel Pimentel
Hi Chris! Good idea (why I never thought about this?), I will try this way, I think that this tip will be much useful. Tks, Manoel Pimentel www.visaoagil.com Chris Pratt wrote: > > One thing you can do is use the tag in struts.xml (along with > the staticParams interceptor from the defau

Re: Catch the element param in a action class

2008-01-10 Thread Chris Pratt
One thing you can do is use the tag in struts.xml (along with the staticParams interceptor from the defaultStack) to inject the value of a parameter into your action. If you have something like this in your struts.xml: anybody home.jsp And then you add a setRole(String role) method to you

Re: Catch the element param in a action class

2008-01-10 Thread Manoel Pimentel
Hi Friends, I did one small workaround, I used the "ServletActionContext.getActionMapping().getName()" for catch the name of my action and as i have two element action using the same action class, this way work well. But, I still can't catch the value into the param element. Tks, Manoel Pimen