Re: Fwd: Re: Struts2 login action class seems to be reused

2018-03-02 Thread Prasanth
Hi Norbert, Struts1 actions are thread safe (no instance variables). The login action has been moved to Struts2 with instance variables for username, password and the issue is coming up with this new struts2 action. Which is used for both displaying login page and also taking

Re: Dynamically generating multiple sets of radio buttons

2018-03-02 Thread Yasser Zamani
On 2/27/2018 4:37 PM, Dave Weis wrote: > value="1500"/>HOTTER > public void setVariation(HashMap variationItem){ > > logger.error("setVariation was called with variations"); > > for (Map.Entry entry : variationItem.entrySet()) { > String

Fwd: Re: Struts2 login action class seems to be reused

2018-03-02 Thread Norbert Hirneisen
Hi Prasanth, are you sure all your struts1 code is thread safe ? I had some similiar problems in a struts1 application. After removing all action class properties the problem was solved. Struts2 should be thread safe. But your problems looks to me like a problem with thread safety. Best

Re: Struts2 login action class seems to be reused

2018-03-02 Thread Prasanth Pasala
I was able to replicate the issue today. Asked few users to keep logging in and ran jmeter to access login page, with out putting any username or password. Out of the 100 attempts 2 attempts were successful in getting in with out username/password. I am seeing database login entries for these

Re: java.lang.ClassCastException: org.apache.struts2.dispatcher.mapper.ActionMapping

2018-03-02 Thread Prasanth
https://issues.apache.org/jira/projects/WW/issues/WW-4904 Forwarded using request dispatcher. ServletContext sContext = context.getContext("/context2"); RequestDispatcher rd = sContext.getRequestDispatcher(resource); rd.forward(request, response); Thanks, Prasanth On 03/02/2018 09:31 AM,

Re: java.lang.ClassCastException: org.apache.struts2.dispatcher.mapper.ActionMapping

2018-03-02 Thread Lukasz Lenart
2018-03-02 15:16 GMT+01:00 Prasanth : > There are two applications on different contexts. Each have their own struts > jars. The exception happens when a request to one context is forwarded to > another context. What do you mean by "forwarded"? Regards -- Ɓukasz +

Re: java.lang.ClassCastException: org.apache.struts2.dispatcher.mapper.ActionMapping

2018-03-02 Thread Prasanth
There are two applications on different contexts. Each have their own struts jars. The exception happens when a request to one context is forwarded to another context. Thanks, Prasanth On 03/02/2018 01:13 AM, Lukasz Lenart wrote: > 2018-03-01 20:20 GMT+01:00 Prasanth

Re: Jsp fields are null at startup

2018-03-02 Thread Lukasz Lenart
2018-03-02 13:31 GMT+01:00 albert kao : > My jsp fields username and password are null at startup (jsp page is > loaded). > Why? > That make the "Invalid Username/Password. Please try again." message appear > when the page is loaded. > How to fix that? Use two methods: -

Jsp fields are null at startup

2018-03-02 Thread albert kao
My jsp fields username and password are null at startup (jsp page is loaded). Why? That make the "Invalid Username/Password. Please try again." message appear when the page is loaded. How to fix that? Login.jsp <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s"