to non-public [private java.lang.String LoginAction.password] is blocked!
I do see these messages in my log. Should we be looking into our code?
Thanks,
Prasanth
On 12/17/23 9:04 AM, Lukasz Lenart wrote:
sob., 16 gru 2023 o 19:10 Ralph Grove napisał(a):
The setup action declares it this way
Hi Lukasz,
Do you know if the work has started to migrate Struts2 to Jakarta EE?
Thanks,
Prasanth
On 11/1/22 4:05 AM, Lukasz Lenart wrote:
pon., 31 paź 2022 o 15:20 Prasanth napisał(a):
Thank you Lukasz. Is there a roadmap for Struts 7 or when it might be released?
No exact date
Thank you Lukasz. Is there a roadmap for Struts 7 or when it might be released?
Thanks,
Prasanth
On 10/30/22 9:04 AM, Lukasz Lenart wrote:
pt., 28 paź 2022 o 22:48 Prasanth napisał(a):
Hi,
Can we use struts 6 in Wildfly 27 (Jakarta EE 10)? With the name space change
from javax to jakarta
Hi,
Can we use struts 6 in Wildfly 27 (Jakarta EE 10)? With the name space change
from javax to jakarta wasn't sure if struts would work in Jakarta EE 9/10.
Thanks,
Prasanth
I need an id added to the link as a param (coming from prior action), so
have used a JSP forward. If I use redirect type and specify the url in
the struts.xml itself would I be able to specify the dynamic id provided
by prior action?
Thanks,
Prasanth
On 2022-06-21 00:11, Lukasz Lenart wrote
Hi,
Would there be a release based on this? If not what is the best way to
include a new swingset jar into Maven build for a project?
Thanks,
Prasanth
On 2022-06-15 04:09, Lukasz Lenart wrote:
Fix is ready
https://github.com/apache/struts/pull/571
śr., 15 cze 2022 o 10:14 Lukasz Lenart
execute method and see if you are getting back to the same action
after the forward.
Thanks,
Prasanth
On 6/14/22 12:23 AM, Rubens Gomes wrote:
I am runnning a Spring Boot 2.7.0 (Latest) Tomcat embedded WAR + Spring Security + Struts
6.0.0 Actions + JSP pages. I started noticing a loop when
and the jsp forward is triggered at this point struts seems to execute the first action again rather than
the action specified in the jsp forward.
from web.xml
struts2
*.action
FORWARD
REQUEST
Thanks,
Prasanth
Guessing you are trying to create dynamic names for the text fields. If you
have dynamic names how are you going to get the values into your action? You
could probably have an array of text fields
where the names of text fields are like mytext[columnName1],
mytext[columnName2] etc.
You can
is of type Double or not. Is this how it is supposed to work? I would have thought that a field error would be added and the String value
would not be added to the Map as the code is expecting Doubles.
Thanks,
Prasanth
On 6/24/19 1:42 AM, Yasser Zamani wrote:
Hi,
I think putting breakpoints at [1
still cause a problem as Struts would not be able to display
the input form.
Thanks,
Prasanth
On 6/21/19 1:23 AM, Yasser Zamani wrote:
Oh interesting!
Have you seen [1]? e.g. conversion error interceptor should be present
in your interceptor stack. To debug, for example put a number field
which
Hi Yasser,
I think at run time you can add any type of objects you want to the map. The
checks are only at compile time on the data types of objects added to Maps.
Thanks,
Prasanth
On 6/19/19 1:29 AM, Yasser Zamani wrote:
Hi Prasanth,
I'm surprised how you get non digit characters in your
ment(value=java.lang.Double.class)
private HashMap deferralPercentValue = new
HashMap();
Thanks,
Prasanth
I
changed my separator to "a" rather than "-". So
the two changes I have made are i) change separator to "a" ii) use single
quotes around the key when specifying the name for text field.
JSP:
Resulting HTML:
Appreciate the input from everyone.
Thanks, Prasan
.
If there a setting for struts that need to be changed to allow non numeric keys?
Thanks,
Prasanth
On 3/13/19 5:13 PM, Prasanth wrote:
> The html form generated is correctly showing the key but the hashmap doesn't
> have a value for 22419-23545 when the form is submitted.
&
The html form generated is correctly showing the key but the hashmap doesn't
have a value for 22419-23545 when the form is submitted.
Thanks, Prasanth
On 3/12/19 9:26 AM, Prasanth Pasala wrote:
> Lukasz,
>
> There is no new keys in the hash map. The hash map is not updated at all.
with just the keys present in the form.
Thanks,
Prasanth
On 3/12/19 4:12 AM, Yasser Zamani wrote:
> (regarding your previous emails background) Please also consider that the key
> 2432-123 is not further Long. It's String.
>
> Regards.
>
>> -Original Message-
&
nly one id (no hyphen) then the
data is getting posted as expected.
Thanks,
Prasanth
ttps://struts.apache.org/core-developers/element-annotation.html
Thanks for all your help.
Thanks,
Prasanth
On 3/7/19 3:57 AM, Yasser Zamani wrote:
> Hi Prasanth,
>
> I searched and saw it is some different for ModelDriven [1].
>
> Regards.
>
> [1]
> https://struts.apa
.Long",
value="java.lang.Integer")
public void setDeferralCode(HashMap deferralCode) {
this.deferralCode = deferralCode;
}
Thanks,
Prasanth
On 2/16/19 3:20 AM, Yasser Zamani wrote:
> I think a file named yourActionClass-conversion.properties beside your action
&g
xxx is the field name of the collection property in your action or
> object)
>
> Regards.
>
> [1]
> https://struts.apache.org/core-developers/type-conversion.html#collection-and-map-support
>
>> -Original Message-
>> From: Prasanth
>> Sent: Friday, Februa
Does struts follow a specific logic as to what the data type of the object
would be based on user input? Meaning when is it converted to a Double vs
Integer vs String?
Thanks,
Prasanth
On 2/15/19 7:45 AM, Lukasz Lenart wrote:
> pt., 15 lut 2019 o 00:17 Prasanth napisał(a):
>> I h
is
populated but the value in the map is a
String array, rather than a single String, with one element having string
Delete.
Do s:submit work differently from s:textfield when it comes to saving data to
ArrayList or Map?
Thanks,
Prasanth
and value of the map and set the key and values in
the map accordingly?
If not, what is the best practice for the declaration of Map, is there a way to
force Struts2 to only have Double objects as values?
Thanks,
Prasanth
I think the issue I am having is due to the theme, I had old checkboxlist.ftl
code. Once it is updated to the latest code it is working well. The only change
I make in it is show each checkbox in a
separate line.
Appreciate all the help.
Thanks,
Prasanth
On 2/6/19 9:31 AM, Prasanth Pasala
So there is no need to add MultiselectInterceptor in the action definition?
Below is the checkboxlist in the jsp. accountNames map is in the account to
provide the list values and names.
Thanks,
Prasanth
On 2/6/19 8:53 AM, Yasser Zamani wrote:
> Ach! Sorry, you're right. For checkbox l
.
form
-1
Thanks,
Prasanth
On 2/5/19 5:43 AM, Yasser Zamani wrote:
> Hi Prasanth,
>
> Yes, I think. Now I can recall a long discussion about this at [1]. i.e. you
> also can keep array
I am using the defaultStack but the ArrayList used for the checkboxes is of
type Long. If we change it to ArrayList of Boolean would the interceptor set
the values to false? Or is this only applicable
if you have individual checkboxes rather than checkboxlist?
Thanks,
Prasanth
On 2/4/19 4:29
Is that how Struts2 is expected to work? Meaning setFoo would not be called if
non of the Foo checkboxes are selected? I know that is how Struts1 worked.
Thanks,
Prasanth
On 2/2/19 7:08 PM, Prasanth Pasala wrote:
> Hi Yasser,
>
> When none of the checkboxes is selected the setFoo is no
Hi Yasser,
When none of the checkboxes is selected the setFoo is not getting called.
Thanks
Prasanth
On February 2, 2019 8:02:07 AM CST, Yasser Zamani
wrote:
>Hi Prasanth,
>
>AFAIK this tag is like this:
>
>
>
>It calls getBar method of your action or finds bar in val
The data class holding the array is in session, done using the scope
interceptor.
Thanks
Prasanth
On February 1, 2019 9:30:30 PM CST, Arjuna Bandara wrote:
>Hi,
>
>As I understand, you need to modify previous Array before saving.
>
>Have you tried Session variable ?
>
box?
Using Struts 2.3.35
Thanks,
Prasanth
Would be good to include a chapter on how to implement a multi form wizard.
Thanks,
Prasanth
On 10/17/18 9:11 PM, sharmila thota wrote:
> Probably Problems and solutions section
>
> Thanks
> Sharmila
>
> Sent from my iPhone
>
>> On Oct 17, 2018, at 3:38 AM, Luk
but should not cause any issues as this data does not change site behavior
but I might set this to empty at the
start of execute (effectively clearing, if this is set from old action).
Thanks,
Prasanth
On 05/17/2018 06:11 AM, Yasser Zamani wrote:
>
> On 5/16/2018 11:51 PM, Prasanth wrote:
&g
,
Prasanth
On 05/16/2018 12:44 PM, Prasanth wrote:
> We use the path as / for the cookie path that allows the session to be shared
> between context1 and context2. The JSESSIONID also remains the same when the
> request is forwarded.
>
> Martin asked me if the action i
exception, did not have a problem reproducing the issue before.
Is this expected?
Thanks,
Prasanth
On 05/16/2018 10:40 AM, Yasser Zamani wrote:
>
> On 5/16/2018 7:23 PM, Prasanth wrote:
>> Exception: java.lang.IllegalStateException: UT10: Sessio
Martin,
We have the cookie config in the application.
20
/
true
true
Thanks,
Prasanth
On 05/15/2018 04:03 PM, Martin Gainty wrote:
>
> 8443 indicates secure connection so p
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624
On 05/16/2018 12:44 AM, Yasser Zamani wrote:
>
> On 5/16/2018 6:59 AM, Prasanth Pasala wrote:
>> We have two applications (websites) to make it easier for users we have a
>> third site that acts as a
. Again this happens
only if there are users logging in context1 and that request is forwarded to
context2. If the login activity is done directly in context2 the issue does not
arise.
Thanks
Prasanth
On May 15, 2018 8:45:25 PM CDT, Jaikiran Pai <jai.forums2...@gmail.com> wrote:
>I don't ha
)
--
Thanks,
Prasanth
On 05/15/2018 07:44 AM, Martin Gainty wrote:
> Hi Norbert/Prasanth
>
> Struts2 login action problem has morphed to "Invalid Session State"with
> Wildfly's implementation of TC 5.5
>
> https://en.wikipedia.org/wiki/WildFly
>
Hi Martin,
Thanks for the response. We are using Wildfly 11.0.0 Final. I will try to get
the HTTP header dump.
Thanks,
Prasanth
On 05/15/2018 07:44 AM, Martin Gainty wrote:
> Hi Norbert/Prasanth
>
> Struts2 login action problem has morphed to "Invalid Session State&quo
, in JMeter testing). Wonder if, some how this data
(session id) is also moved by struts2 when copying
data from the other LoginAction that is lingering from old requests.
Thanks,
Prasanth
Exception: java.lang.IllegalStateException: UT10: Session is invalid
fixed the logic in ChangePasswordFilter to not forward if the request is
going to ChangePassword action.
Thanks,
Prasanth
On 05/08/2018 01:39 AM, Yasser Zamani wrote:
>
> On 5/7/2018 8:35 PM, Prasanth wrote:
>> When I get the value from request object (request.getParameter("page&q
This seems to be happening only when the PasswordChangedFilter forwards the
request to this action. If the action is accessed directly it works fine.
Thanks,
Prasanth
On 05/07/2018 11:05 AM, Prasanth wrote:
> Hi,
>
> I am using struts 2.3.34 and have an form with few text fields and
s.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
io.undertow.servlet.handlers.ServletInitialHandl...
Thanks,
Prasanth
two contexts. If there is a FORWARD within the context and the
same action can also be initiated by direct
REQUEST wonder if the same issue will crop up.
Thanks,
Prasanth
On 04/24/2018 01:52 AM, Yasser Zamani wrote:
>
> On 4/23/2018 11:50 PM, Prasanth Pasala wrote:
>> Get rid of the
to continue with a new request.
Still not sure about the above comment. So the ChainInterceptor is getting
data from an action that occurred before and is not part of current request?
Thanks,
Prasanth
On 04/23/2018 01:27 PM, Yasser Zamani wrote:
>
> On 4/23/2018 10:12 PM, Prasanth Pasala
in /Context2 I can remove instance variables (so that
struts doesn't set any values) I will directly access the request object to get
username and password to validate.
Thanks,
Prasanth
On 04/23/2018 12:31 PM, Yasser Zamani wrote:
>
> On 4/23/2018 8:04 PM, Prasanth Pasala wrote:
>> Found t
. We have users who would
login to the right context and some who utilize
Context1 to login.
Thanks,
Prasanth
On 04/23/2018 09:42 AM, Prasanth Pasala wrote:
> Below is the result of the new logging.
>
> Root Size: 3
> Result: null
> Object: com.opensymphony.xwork2.DefaultTextProvide
Below is the result of the new logging.
Root Size: 3
Result: null
Object: com.opensymphony.xwork2.DefaultTextProvider@4d36d73d
Object: com.xx.webaccess.LoginAction@40c80ce8
Thanks,
Prasanth
On 04/21/2018 05:09 AM, Yasser Zamani wrote:
>
> On 4/19/2018 4:39 PM, 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
)
Thanks,
Prasanth
On 04/17/2018 10:28 AM, Yasser Zamani wrote:
>
> On 4/16/2018 7:19 PM, Prasanth Pasala wrote:
>> So I am wondering where did these values come from into the instance
>> variables?
> Great! Please also get the current stack trace inside your action's
> set
7416
-
Thanks,
Prasanth
On 03/16/2018 02:30 PM, Prasanth Pasala wrote:
> There is only one reference to Util.authenticate in the project and that is
> in LoginAction.
>
> On 03/16/2018 02:13 PM, Yasser Zamani wrote:
>> And you confirm that those log record insertions
ewhere
> also?
> On Mar 16, 2018, at 9:45PM, Prasanth Pasala
> <ppas...@pangburngroup.com<mailto:ppas...@pangburngroup.com>> wrote:
>
> We have a pretty standard struts.xml just declaration of action and the class
> along with the results (tiles results). Nothing other t
We have a pretty standard struts.xml just declaration of action and the class
along with the results (tiles results). Nothing other than that.
On 03/16/2018 11:55 AM, Yasser Zamani wrote:
>
> On 3/16/2018 1:49 AM, Prasanth Pasala wrote:
>> We do have login time, using tha
with the login record in the database
(login would be for User2 id and IP from User1 GET). So it looks as if the same
user logged in from two different IPs
around the same time, which shouldn't be the case.
Thanks,
Prasanth
On 03/15/2018 10:28 AM, Yasser Zamani wrote:
>
> On 3/15/2018 5:21 PM, Pr
User2 would have logged in some time before that, some times with in a minute
before that. I haven't seen any requests from User2 exactly at the time of GET
request from User1.
Thanks,
Prasanth
On 03/15/2018 04:45 AM, Yasser Zamani wrote:
>
> On 3/14/2018 5:43 PM, Prasanth Pasala wrote:
of the server there was a POST request for User1 but at the time
of login entry for User2 there was only a
GET request. In the time line GET request is first, User1 sees User2's
information logs out and then login again with their credentials.
Thanks,
Prasanth
On 03/13/2018 11:41 PM, Yasser Zamani
the issue coming up.
Would hot deployments cause any issue?
Thanks,
Prasanth
On 03/08/2018 11:53 AM, Yasser Zamani wrote:
>
> On 3/8/2018 6:42 PM, Prasanth Pasala wrote:
>> Wish I was able to consistently reproduce it. I have two thread groups in
>> JMeter one thread group r
am
thinking of is comparing the username/password in the action class with the
values in the request object itself. If they are
different I can send an email with the information and not login the user.
Thanks,
Prasanth
On 03/08/2018 03:13 AM, Yasser Zamani wrote:
>
> On 3/7/2018 11
that
there is no active session and went to the
authentication part, authenticated the user and made a database entry for
successful login. The authentication is based on the form variables populated
by struts into the action class.
Thanks,
Prasanth
On 03/07/2018 01:22 PM, Yasser Zamani wrote
that fetches the data for home
page.
Thanks,
Prasanth
public class LoginAction implements ServletRequestAware{
Logger log = Logger.getLogger(this.getClass());
private HttpServletRequest request;
private String message = "";
private String username = "";
pri
dispatcher.isDevMode()) {
dispatcher.sendError(request, response,
HttpServletResponse.SC_INTERNAL_SERVER_ERROR, ex);
}
}
}
return mapping;
}
--
Thanks,
Prasanth
On 03/05/2018 11:49 AM, Yasser Zamani wrote:
>
> On 3/5/20
;
> On Mon, Mar 5, 2018 at 10:49 AM, Yasser Zamani <yasserzam...@apache.org>
> wrote:
>
>>
>> On 3/5/2018 7:48 PM, Prasanth wrote:
>>> But the Login filter had the below lines to make sure forwarded requests
>> from /context1
>>> would work.
>&
The filter is just for struts2. Struts1 is handled by servlet mapping.
action
*.do
On 03/05/2018 11:52 PM, Lukasz Lenart wrote:
> 2018-03-05 16:19 GMT+01:00 Prasanth Pasala <ppas...@pangburngroup.com>:
>> Yeah, my url pattern is *.action as I do have some struts1
Yeah, my url pattern is *.action as I do have some struts1 actions.
struts2
*.action
REQUEST
FORWARD
On 03/05/2018 12:27 AM, Lukasz Lenart wrote:
> 2018-03-02 17:33 GMT+01:00 Prasanth <dbad...@pangburngroup.com>:
>> https://issues.apache.org/jira/projects/WW
("struts.actionMapping", new ActionMapping());
request.setAttribute("struts.valueStack", null);
The request object type is io.undertow.servlet.spec.HttpServletRequestImpl
Thanks,
Prasanth
On 03/03/2018 04:14 AM, Yasser Zamani wrote:
> On 3/3/2018 12:37 AM, Prasanth Pasa
/password
when the form is submitted.
Thanks,
Prasanth
On 3/2/2018 5:55 PM, Norbert Hirneisen wrote:
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
for these two. Which would happen only if a valid session is not
present and user has provided username/password.
Thanks,
Prasanth
On 03/01/2018 02:27 PM, Prasanth wrote:
> Hi,
>
> I have an application which uses both struts1 & struts2. The login action was
> recently moved to struts2. I
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/201
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 <dbad...@pangburngro
t.setAttribute("struts.valueStack", null);
We are using Struts 2.3.34 and Wildfly.
Appreciate any insights you might have.
Thanks,
Prasanth
Below is the exception you would get if the valueStack is not set to null.
Thanks,
Prasanth
13:17:52,070 ERROR [stderr] (default task-59) Caused by:
java.lang.ClassCastException: com.opensymphony.xwork2.ognl.OgnlValueStack
cannot be cast to com.opensymphony.xwork2.util.ValueStack
13:17:52,070
Sorry didn't check the website, I am not getting the emails to my inbox, will
try to subscribe again. I will get back to you with the exception I was
getting if you don't set the valueStack to null.
Thanks, Prasanth
-- [show/hide
, Prasanth
---
[show/hide
original text]
No it's not a Struts issue. You don't see this in Struts1 because maybe
it doesn't use any object bounded to dispatched request. But Struts2
wants to
ActionMapping mapping
("struts.actionMapping", new ActionMapping());
request.setAttribute("struts.valueStack", null);
Thanks,
Prasanth
On 12/15/2017 04:10 PM, Prasanth Pasala wrote:
> It seems like removeAttribute or setAttribute is not getting rid of the
> attribute from request. See
thod='null', extension='action', params=null, result=null}
16:05:10,960 INFO [stdout] (default task-13) ActionMapping{name='Login',
namespace='/', method='null', extension='action', params=null, result=null}
On 12/15/2017 02:28 PM, Prasanth Pasala wrote:
> Thanks for the prompt response.
Thanks for the prompt response. Tried removing the attribute from the request,
but still getting the class cast exception. Is it possible it is being set
after I have called the forward?
request.removeAttribute("struts.actionMapping"); // FORWARD THE REQUEST
ServletContext sContext
Yes, dispatching request to another struts application. I am using Wildfly
which does use different class loaders. Is this issue just with Struts2, as it
works with Struts1.
Thanks,
Prasanth
--
... do you try to dispatch
We have the struts jars in the individual wars. I was actually thinking of
putting it in server lib to see if that would solve the problem.
Thanks,
Prasanth
*
From: *<c...@bmw.de>
*Subject: *re: java.lang.ClassCastException:
org.apache.struts2.dispatcher.mapper.ActionMapping
*Date: *2017
Yes, dispatching request to another struts application. I am using Wildfly
which does use different class loaders. Is this issue just with Struts2, as it
works with Struts1.
Thanks,
Prasanth
--
... do you try to dispatch
("/context2");
RequestDispatcher rd = sContext.getRequestDispatcher(resource);
rd.forward(request, response);
Thanks,
Prasanth
Exception: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.ClassCastException:
org.apache.struts2.dispatcher.mapper.ActionMapping cann
Hi,
I need a urgent help. Could someone respond to
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=015067
regards
Prasanth
83 matches
Mail list logo