Get Action method name in Struts 2.2.X

2011-08-10 Thread styl9090
Hi, I am migrating my application from Struts 2.0.X to 2.2.3. In 2.0.x I used to get the struts action and method names using *ActionContext.getContext().getName();*, this returns action along with method like test!getUser, but in latest version getName() does not return method, it only returns

Re: Get Action method name in Struts 2.2.X

2011-08-10 Thread styl9090
I am just able to get the answer.. You can get action name and method names using ActionProxy object. *ActionProxy.getActionName(), ActionProxy.getMethod()* -- View this message in context: http://struts.1045723.n5.nabble.com/Get-Action-method-name-in-Struts-2-2-X-tp4687277p4687431.html Sent

Re: Get Action method name in Struts 2.2.X

2011-08-10 Thread styl9090
Thanks Jason, I just figured that out before i see your response. -- View this message in context: http://struts.1045723.n5.nabble.com/Get-Action-method-name-in-Struts-2-2-X-tp4687277p4687436.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Struts 2.2 submit button method

2011-03-22 Thread styl9090
I figured this out by changing struts.enable.DynamicMethodInvocation parameter value to True in struts.xml. -- View this message in context: http://struts.1045723.n5.nabble.com/Struts-2-2-submit-button-method-tp4257124p4257527.html Sent from the Struts - User mailing list archive at Nabble.com.

Struts 2.2 submit button method

2011-03-22 Thread styl9090
Hi, I am trying to migrate my current struts 2.0.14 application into struts 2.2. Method binding with submit buttons seems to be not working with 2.2. It is giving the error: WARN [org.apache.struts2.dispatcher.Dispatcher] - Could not find action or result.. Here is the struts.xml code:

Re: dynamic action in form

2008-10-17 Thread styl9090
It worked out.. Thank you! Laurie Harper wrote: styl9090 wrote: Hi, I am using struts 2 in my current project. How can I write the action dynamically in my JSP form tag? Here is the example: This case, I have my form action is in session. s:form name=sampleForm action= I have

dynamic action in form

2008-10-15 Thread styl9090
Hi, I am using struts 2 in my current project. How can I write the action dynamically in my JSP form tag? Here is the example: This case, I have my form action is in session. s:form name=sampleForm action= I have tried using below, which didn't work: s:form name=openForm

Re: Interceptor doesn't work upon submit?

2008-01-09 Thread styl9090
Thank you so much... It works. :) All I had to create Interceptor will all the values of defaultStack. Thanks. newton.dave wrote: Did I not already answer this? --- styl9090 [EMAIL PROTECTED] wrote: action name=assign class=***.AssignAction interceptor-ref name=log2000

Using Interceptors, Plz help

2008-01-08 Thread styl9090
Hello All, I am new to Struts 2. In my application I have created a LoginSessionInterceptor, and would like to use it for all the actions using below code. In struts.xml interceptors interceptor name=login2000 class=***.LoginInterceptor / /interceptors action name=assign

Interceptor doesn't work upon submit?

2008-01-08 Thread styl9090
Hello All, In my application I have created a LoginSessionInterceptor. struts.xml: interceptors interceptor name=log2000 class=***.LoginInterceptor / /interceptors action name=assign class=***.AssignAction interceptor-ref name=log2000/ result

Re: html:checkbox problem.

2007-02-05 Thread styl9090
Thank you so much for you help, Christopher Dave. Dave Newton-4 wrote: --- styl9090 [EMAIL PROTECTED] wrote: As I could not find any resolution for this issue, I would like to write java code in JSP :( Life goes on. [...] checkbox with 'value' attribute as a field in the data row

html:checkbox problem.

2007-02-01 Thread styl9090
Hi All, In my application, I need to generate check boxes for every row of data. I set the data as a list of objects in my controller and I access the same in JSP using logic:iterate For each row of this data, I need to add a checkbox with 'value' attribute as a field in the data row object...

Re: html:checkbox problem.

2007-02-01 Thread styl9090
As I could not find any resolution for this issue, I would like to write java code in JSP :( styl9090 wrote: Hi All, In my application, I need to generate check boxes for every row of data. I set the data as a list of objects in my controller and I access the same in JSP using