Hi Nate,
Tried it with and without attr but that didn't work. After trying various
things below code worked. Using OGNL to set value attribute of s:param didn't
work either.
${amountIndex}
Following did not work:
1.
2.
3.
Thanks,
Prasanth
On 7/31/24 6:28 AM, Nate Kerkhofs wrote:
https://struts.apache.org/core-developers/type-conversion.html#collect
ion-and-map-support
[2]
https://github.com/apache/struts/blob/651eac2c57396aa11ee65002006b3123
dd69cbb4/core/src/main/java/com/opensymphony/xwork2/interceptor/Conver
sionErrorInterceptor.java#L116
On 6/19/2019 10:35 PM, Pra
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 ma
Lukasz,
There is no new keys in the hash map. The hash map is not updated at all.
Before the form is displayed to the user, the hash map is populated based on
the data in the database. These values are
correctly displayed to the user in the text fields. But when the form is
submitted by the use
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
/WEB-INF/tags/ui/example.jsp
>
>
>
> When I post an empty form, MultiselectInterceptor adds an empty string for
> selectedLongs http param, then Struts internal conversion converts it to an
> empty instance of List, then setSelectedLongs will be
rray list of long but override the interceptor like below [2]:
>
>
>
> -1
>
>
> Kind Regards.
>
> [1] https://github.com/apache/struts/pull/169
> [2] https://github.com/apache/struts/pull/169#issuecomment-352999309
>
>
>> -Original Message-
>&g
ox is not
> checked. This is part of the default interceptor stack.
>
> Paul
>
> -Original Message-
> From: Prasanth Pasala
> Sent: Monday, February 4, 2019 5:21 PM
> To: user@struts.apache.org
> Subject: Re: Struts2 Checkboxlist
>
> NOTICE: This email orig
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 value stack to
>find out what
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
ate in this community. Not a
>> member? Join Now!
>>
>>
>> jaikiran is a good resource that i met on a different userlist..i
>> would definitely ping him
>> stay in touch/let me know if setting session-cookie in
>standalone.xml
>> works
>>
&g
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 regards,
>
> Norbert
>
> science + communication & HaNo Systems
>
> Bonn/Ho-Chi-Minh
>
&
e 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 regards,
&g
valid
JVoo5BkMlzTpOavsEe7_NjS0MzTXDlhYtlSviiGR
On 04/24/2018 09:00 AM, Prasanth Pasala wrote:
> I have removed the get methods from the LoginAction of /Context2 and that
> seems to solve the problem. So seems like the LoginAction objects created
> because of FORWARD some how are in the stack while a
> LoginAction is
I think I might have found the reason. The page it is forwarded to have
page=ChangePassword as a query string. So I think struts is getting data from
the query string and the post data and combining
them to form the ChangePassword, ChangePassword as the value for the page
variable.
I have fixed
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 a hidden
>
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 ge
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
/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
text3. 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.DefaultTextPr
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
gt; 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! Th
a:748)
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'
ct Hash: 1573857416
-
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 re
ewhere
> also?
> On Mar 16, 2018, at 9:45PM, Prasanth Pasala
> 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 than that.
>
> On 03/16/2018 11
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 that a
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 P
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 w
amani wrote:
>
> On 3/10/2018 1:22 AM, Prasanth Pasala wrote:
>> Ran tests with 1000 users logging in in 60sec while simultaneously 1000
>> users just requesting login page in 60 sec to see if any of them would get
>> in with out username/password. No luck. System seems
&g
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
18 11:23 PM, Prasanth Pasala wrote:
>> If it is a session crossover we would display another user information
>> without making a login entry. In the cases where we had issue the code
>> recognized that there is no active session and went to the
>> authentication part, authent
Thanks for looking into this Yasser. In the current setup we have, we don't
have a cluster, it is the only server handling all requests.
If it is a session crossover we would display another user information without
making a login entry. In the cases where we had issue the code recognized that
I am not defining any default action.
I would get the below exception if I set the ActionMapping to null. For some
reason the object doesn't go away, if I set it to null. After setting it to
null using
request.setAttribute("struts.actionMapping", null); I can get it using
getAttribute. The o
I am not using Spring. Using Struts1, Struts 2 (2.3.34), tiles 2.0.4
On 03/05/2018 11:57 AM, Adam Brin wrote:
> What are the annotations on the class? Is it possible that you're using
> Spring, and not declaring "prototype" scope. eg:
>
> @Scope("prototype")
>
> On Mon, Mar 5, 2018 at 10:49 AM, Y
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 :
>> Yeah, my url pattern is *.action as I do have some struts1 actions.
> Does it mean you
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 :
>> https://issues.apache.org/jira/projects/WW/issues/WW-4904
>>
>> Forwarded using reques
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 tw
Mapping mapping =
(ActionMapping)request.getAttribute("struts.actionMapping");
A workaround would be removing object with key "struts.actionMapping"
from request before dispatching.
I hope this helps.
On 12/15/2017 04:54 PM, Prasanth Pasala wrote:
> Added the below two lines to my
("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 belo
mespace='/', method='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
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
Hi,
I am trying to forward the request to another action that is present in a
different context. It works in struts1 but when trying in struts 2.3.34 I am
getting a class cast exception. Both the projects
(contexts) have the same version of struts2.
ServletContext sContext = context.getContext(
44 matches
Mail list logo