Re: Help : Disable Strict Method Invocation for struts 2 rest plugin

2018-04-19 Thread DevaGerald
Just a clarification. May be my point was misunderstood.

Ex : /resource/resource_id/hello
This will call the hello method of my controller.
REST plugin directly maps to my custom method. In this case, it calls the
hello method of my ResourceController.

What will be the best solution for this case?

P.S. I am not using struts 2 DMI.



--
Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html

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



Re: Help : Disable Strict Method Invocation for struts 2 rest plugin

2018-04-19 Thread Lukasz Lenart
2018-04-19 8:58 GMT+02:00 DevaGerald :
> Just a clarification. May be my point was misunderstood.
>
> Ex : /resource/resource_id/hello
> This will call the hello method of my controller.
> REST plugin directly maps to my custom method. In this case, it calls the
> hello method of my ResourceController.
>
> What will be the best solution for this case?
>
> P.S. I am not using struts 2 DMI.

Can you share your struts.xml config?


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



Re: Struts2 login action class seems to be reused

2018-04-19 Thread Yasser Zamani


On 4/19/2018 7:21 AM, Prasanth Pasala wrote:
>  
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.copyStack(ChainingInterceptor.java:153)
>  
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:143)

Thanks! These lines show Struts doesn't set username from a request
parameter, but it seems that you have a chain result to login action
which sets username from it's previous action's getUsername! Could you
verify these via reviewing your struts.xml finding an action that has a
chain result to login action?

Thanks in advance!

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


Re: Struts2 login action class seems to be reused

2018-04-19 Thread Prasanth Pasala
There is a index.jsp which is defined as default page in web.xml it just 
forwards the request to Login.action. There is no chaining of actions in struts 
itself. We do have a LoginFilter which verifies
if a user is logged in.

Thanks,
Prasanth

On 04/19/2018 03:26 AM, Yasser Zamani wrote:
>
> On 4/19/2018 7:21 AM, Prasanth Pasala wrote:
>>  
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.copyStack(ChainingInterceptor.java:153)
>>  
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:143)
> Thanks! These lines show Struts doesn't set username from a request
> parameter, but it seems that you have a chain result to login action
> which sets username from it's previous action's getUsername! Could you
> verify these via reviewing your struts.xml finding an action that has a
> chain result to login action?
>
> Thanks in advance!
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>



Re: Help : Disable Strict Method Invocation for struts 2 rest plugin

2018-04-19 Thread DevaGerald

http://struts.apache.org/dtds/struts-2.5.dtd";>

















regex:[a-zA-Z]*






--
Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html

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



Re: Confused about upgrading Apache Struts

2018-04-19 Thread Alex Choi
Hi Sean,

Maybe I can help explain what you're about to undertake from a SysAdmin
prospective.

Upgrading or changing an application framework like Struts is similar to
upgrading or changing a Linus/Unix pplication package or dependancies.  In
Windows, it would be similar to upgrading or changing DLLs.

In those cases, APIs, application  structures, processing flows, and so-on
may have changed.  If any of these items have changed, then the application
may need to change too.

A starting point is the reviewing the framework's documentation, change
logs, applications technical documentation and so-on.  As Dave mention
before, if you need help with understanding these documents you should
consult with the application developers or your application vendor.

I hope this helps.

Alex

On Wed, Apr 11, 2018, 1:25 PM Dave Newton,  wrote:

> On Wed, Apr 11, 2018 at 3:32 PM Sean Son  >
> wrote:
>
> > Is it difficult for a Linux Admin who is a
> > non-developer to upgrade struts by themselves?
> >
> Depends-if you know how to build and deploy Java web apps, and no code
> changes are required, not particularly (assuming it's a Maven/etc project).
>
> Dave
> --
> e: davelnew...@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton 
> b: Bucky Bits 
> g: davelnewton 
> so: Dave Newton 
>