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
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
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.
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.
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:
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
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
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
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
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
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
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...
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
13 matches
Mail list logo