Re: SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Dave Newton
On Tue, Jun 2, 2020 at 03:14 Lukasz Lenart  wrote:

> wt., 2 cze 2020 o 09:05 Sailaja S  napisał(a):
> > How do I invoke multiple methods with the same action? I did post this in
> > stackover flow as well.  I appreciate your time and inputs.
>
> Where?


https://stackoverflow.com/questions/62068693/how-to-invoke-multiple-methods-from-struts2-5-with-smi-and-with-constant-name


-- 
em: davelnew...@gmail.com
mo: 908-380-8699
tw: @dave_newton 
li: dave-newton 
gh: davelnewton 
so: Dave Newton 
bl[0]: Bucky Bits 
bl[1]: Maker's End Blog 
sk: davelnewton_skype


Re: SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Lukasz Lenart
wt., 2 cze 2020 o 09:05 Sailaja S  napisał(a):
> When I set Dynamic method invocation to false allowed methods is not
> working. Should allowed-methods  work with SMI?

Those two different things, you can enable DMI but you still need to
define allowed methods.

> How do I invoke multiple methods with the same action? I did post this in
> stackover flow as well.  I appreciate your time and inputs.

Where?

> Currently I have
> 
> 
> 
> search,reset

This isn't a proper Struts config, please provide a real example

> In jsp
> I have two submit buttons that are setting method name upon click. Jsp
> forntag has action=action1

Could you show a real example? I assume you are using

 and 

if so you must enable "struts.mapper.action.prefix.enabled"
https://struts.apache.org/core-developers/action-mapper.html#defaultactionmapper


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Sailaja S
Hi,

 Currently I have an app sec issue with Struts Dynamic method invocation
being set to true in my struts.xml file. We are using struts2.5.

When I set Dynamic method invocation to false allowed methods is not
working. Should allowed-methods  work with SMI?

How do I invoke multiple methods with the same action? I did post this in
stackover flow as well.  I appreciate your time and inputs.

Currently I have



search,reset

In jsp
I have two submit buttons that are setting method name upon click. Jsp
forntag has action=action1

Please suggest me the code fix.

Thank you,
Sailaja.