On 11/6/2017 4:37 PM, Yasser Zamani wrote:
> then define myGoodList as List
As you want to use inside an iterator, I think you want myGoodList as
List>.
On 11/6/2017 2:53 PM, albert kao wrote:
> listValue="value"/>
I see that myGoodList is List and String does not have
properties named key and value. Please try defining a class named MyGood
which has getKey and getValue methods then define myGoodList as
List.
On 11/6/2017 4:12 AM, albert kao wrote:
> please provide more explanation and source code examples.
I think it is like ModelDriven but in ModelDriven you can have the model
only in that action but in ScopedModelDriven you can have the model
shared between actions in larger scopes `request` (de
On 10/30/2017 5:45 PM, ravirajmishr...@gmail.com wrote:
>
>
>
>
>
>
I think this is the cause and you should rewrite like below
additivity="true">
However, it is bett
On 10/30/2017 7:06 PM, Ej Magdaluyo wrote:
> viewMyRequest.jsp:
>
> ViewReqDetailsVO ViewReqDetails =
> (ViewReqDetailsVO)request.getAttribute("ViewReqDetails");
> java.util.List classficationList = ViewReqDetails.getClassficationList();
>
> A null value is being returned here, which is most li
On 10/26/2017 12:11 PM, Ej Magdaluyo wrote:
> Thanks for all your input. After narrowing it down, the 403 forbidden is
> caused by these lines:
> java.util.List classficationList = ViewReqDetails.getClassficationList();
> java.util.List reqLineAttributesUIList=ViewReqDetails.
> getReqLineAttribut
On 10/25/2017 8:20 PM, Ej Magdaluyo wrote:
> Would you have any ideas?
I think it furthermore is not a Struts issue, nor Tiles issue and you
can revert back to tiles result. It seems there is an issue with raw
java codes in that jsp. See if [1] can help.
[1]
https://stackoverflow.com/questio
On 10/25/2017 5:32 PM, Ej Magdaluyo wrote:
> This is a really difficult issue to troubleshoot:(
I love difficult issues ;) could you please backup that jsp's contents
then replace it's contents with just a simple string like "I am
viewMyRequest.jsp" then run and see what happens?
On 10/25/2017 12:41 PM, Ej Magdaluyo wrote:
> it still returns a
> 403 error with the new jsp file
I remember you use WebLogic. Please enable it's debug logging and
examine it's output (search viewMyRequest and see above and belog log
lines). I guess it should say why it throws 403?
On 10/24/2017 7:35 PM, Ej Magdaluyo wrote:
> It seems that the viewMyRequest.jsp is the only one with the issue. Would
> you have any clue as to what may be the cause of this permission issue?
So you should come back to tile result because the problem is with that
jsp file itself then your page
On 10/24/2017 6:11 PM, Ej Magdaluyo wrote:
> Unfortunately, we are getting the 403 error using that as well. I am not
> sure why though. It seems as if the application is not able to access the
> jsp folder on this action.
>
> I tried that path on our pre-migrated version and there were no issue
On 10/24/2017 4:21 PM, Ej Magdaluyo wrote:
> is it possible to directly call the jsp from struts.xml
> instead?
Absolutely. try removing `type='tiles'` and correct the path (add
`/jsp/`) as below:
/jsp/viewMyRequest.jsp
-
To
On 10/24/2017 10:10 AM, ravirajmishr...@gmail.com wrote:
> java.lang.ClassCastException: org.apache.tiles.jsp.taglib.UseAttributeTag
> cannot be cast to javax.servlet.jsp.tagext.Tag
There are several possible things. Please search the web for "cannot be
cast to javax.servlet.jsp.tagext.Tag" th
On 10/24/2017 2:06 PM, ravirajmishr...@gmail.com wrote:
> Can Anyone help me with the log4j 2 configuration in struts 2.5.x application.
You correctly ask this in user list but please don't cross post to dev
list. Please see Guides of [1].
[1] http://struts.apache.org/mail.html
On 10/15/2017 4:23 AM, Dave Weis wrote:
> If I set the method in the form to "get" it works fine but if I
> leave it to default to "post" I receive the following error.
It seems you have REST Plugin in your box and when you use http post
method, Struts looks for a method named `create` on your
On 10/13/2017 6:29 PM, Matias Rodriguez wrote:
> IMHO
> the limitation should be done by a formatter, not in a converter,
> delegating the formatting to the user's hands.
I agree. Please track the resolution on the JIRA ticket at [1].
Thanks for your report,
Yasser.
[1] https://issues.apache.o
On 10/13/2017 12:47 PM, Ej Magdaluyo wrote:
> *"com.MyRequestAction"*>
>
> /viewMyRequest.jsp
>
>
I have no idea how above works in your previous app!! I guess that is an
another bug in your app. You don't have `/viewMyRequest.jsp` (rather
than `/jsp/viewMyRequest.jsp`) so maybe you get 40
On 10/14/2017 5:43 AM, albert kao wrote:
> Messages:
> /WEB-INF/jsp/persons.jsp (line: 13, column: 8) Attribute id invalid for tag
> url according to TLD
Hello Albert,
Thanks for your report. It seems struts-examples need some fixes which
are under processing at [1].
Regards,
Yasser.
[1] htt
On 10/13/2017 9:14 AM, Lukasz Lenart wrote:
> I think we can fix it in 2.5.14
That is a bug inside Ej's custom interceptor, I think.
On 10/12/2017 4:03 PM, Ej Magdaluyo wrote:
> *if*(fileRequestWrapper!=*null* &&fileRequestWrapper
> .getErrors()!=*null*){
I worked and found the bug :) the new version of MultiPartRequestWrapper
instantiates it's `error` inside it's constructor. So you should rewrite
above as
On 10/12/2017 11:44 AM, Ej Magdaluyo wrote:
> I would just like to confirm if it is expected that we would need to add
> a fileSizeError result. This is because the code was working in Struts
> 2.2.3, and the error only appeared post-migration. I reviewed the
> migration notes, and I am not ce
On 10/12/2017 11:14 AM, Ej Magdaluyo wrote:
>
> /addAccess
Your action has returned "fileSizeError" but only "success" has defined.
> No result defined for action com.MyRequestAction and result fileSizeError -
> action
>
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultA
On 10/12/2017 8:48 AM, Ej Magdaluyo wrote:
> No result defined for action com.MyRequestAction and result fileSizeError
Could you please post it's complete stack trace?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.or
On 10/9/2017 8:59 AM, Lukasz Lenart wrote:
> - request a change via JIRA
As Struts converts to/from strings, to keep backward-compatibility,
maybe it's better to setMaximumFractionDigits to possible max value that
can accepts; This avoids loss of user's data caused by rounding like
previous v
On 10/4/2017 10:45 AM, sreekanth wrote:
> thanks Yasser, let me setup a sample too. I already went through fixes
> introduced at WW-4581 as well and ran a test against it and found that's not
> the reason for this behavior rather something related to form field binding.
>
> Here i'm adding your
On 10/4/2017 9:19 AM, sreekanth wrote:
> thanks Yasser, that info was great, so do you think so the way struts2 binds
> BigDecimal changed between these two versions ?
I found the difference at [1]. That is in order to fix WW-4581 [2].
[1]
https://gitbox.apache.org/repos/asf?p=struts.git;a=com
On 10/4/2017 8:07 AM, sreekanth wrote:
> thanks Yasser, may i know with which version of struts you have tested it
> 2.5.10.1 or 2.5.13 ?
>
2.5.13. But now I also tested 2.5.10.1 and get following warn when try
to set empty string value to a BigDecimal:
Unexpected Exception caught setting 'my
On 10/3/2017 10:33 PM, sreekanth wrote:
> Thanks Yasser, if my previous doubts get cleared then probably i can assume
> there is behavioral change in binding empty value. If thats not the case
> then will try to replicate as you have mentioned.
>
In my yesterday test application, empty string v
On 10/3/2017 9:56 PM, sreekanth wrote:
> The value not getting set at all, its coming as null. By the time i will also
> see if i can provide some log as you mentioned.
>
I tested similar action with a list of A where A has two BigDecimals;
posted values (myList[x].y] getting set here however
On 10/3/2017 8:26 PM, sreekanth wrote:
> Hi,
> We have a List object which is getting set at JSP (element added
> dynamically in front end), while saving this form the object's value for
> BigDecimal fields are getting null.
>
> eg:
>
> Class A {
> String strVal;
> BigDecimal drAmt;
> BigD
On 10/2/2017 11:00 AM, Lukasz Lenart wrote:
> was off for few days to take few
> off-road rides on my dirty bike;-)
:) cool! I hope you did not reach any issue with your bike's Struts :)
Just joking! welcome back Łukasz! Actually such days traverses hardly
for me as I do not hear about you a
ghts? Any reason this would cause issues elsewhere?
>
> On Sun, Oct 1, 2017 at 1:37 PM, Burton Rhodes
> wrote:
>
>> Got it. I'll use that for now. Don't you think that is a bit of a hack?
>> Do you think this be fixed or reported as a "bug"?
>>
&
Hello Burton,
Thank you; I examined your example and found out this behavior is
because of something in Struts named "automatic checkbox detection",
CheckboxInterceptor.
When your `choices` count is bigger than 1, you'll see your desired
behavior because CheckboxInterceptor does nothing with f
Hello Burton,
I tested following and seems works but I did not tested if objects are
equal by reference (you may get different objects e.g. when scope is
prototype):
```java
public class MYStrutsPrepareFilter implements Filter {
public void doFilter(ServletRequest req, ServletResponse
any related
WARN.
[1] https://struts.apache.org/docs/devmode.html
> -----Original Message-
> From: Yasser Zamani [mailto:yasser.zam...@live.com]
> Sent: Tuesday, September 26, 2017 1:49 PM
> To: user@struts.apache.org
> Subject: Re: Question about upgrade to struts2 2.3.34 and
ssion;
> }
>
Thank you! So could you please also check if replacing all
session.userList with session['userList'] resolves this issue?
> Adding # before session didn't solve the issue.
>
> Thanks,
>
> Lana
>
> -Original Message-
> Fro
On 9/26/2017 7:41 PM, Roslyakova, Svetlana wrote:
> Here is the full example:
>
>
>
Does your action have getSession() method? As I remember, to access
session we should use #session e.g. #session.userList or
#session['userList']
>
>
>
> "> type="text" id="userId" theme="
Hello Palani,
I could not guess how that issue is related to Struts? Is that table or
it's parent or parents generated by Struts?
On 9/25/2017 1:29 PM, Palani, Sambasivam wrote:
> Hi Team,
>
> We are migrating our application from Struts v2.2.1.1 to Struts v2.3.34 to
> fix the vulnerability is
Hello Emi,
According to [1] and [2], yes. It's code is S2-052 and resolved in
2.3.34 and 2.5.13.
[1]
http://mail-archives.apache.org/mod_mbox/www-announce/201709.mbox/%3CCAMopvkNPG--EVqRtg4rO0G1bYrJ0cgYiBh=P=o2poezq8kv...@mail.gmail.com%3E
[2]
http://mail-archives.us.apache.org/mod_mbox/www-an
Hello Burton,
I could post back lists without any custom converter as below:
```jsp
```
But about your question:
Java uses something called "type erasure", which means at runtime both
List and List are equivalent. The compiler knows the
lists
Hello Palani,
I could not guess how that issue is related to Struts? Is that table or
it's parent or parents generated by Struts?
On 9/22/2017 6:58 PM, Palani, Sambasivam wrote:
> Hi Team,
>
> We are migrating our application from Struts v2.2.1.1 to Struts v2.3.34 to
> fix the vulnerability is
On 9/19/2017 11:43 AM, LAW Andy wrote:
>
>> On 14 Sep 2017, at 16:03, Yasser Zamani wrote:
>>
>> Do last three exceptions occur in same time, in one action call (I think
>> because of first word of their lines 73709, 73712 and 73716 and their
>> same thread nam
p you here.
Sincerely Yours,
Yasser.
On 9/18/2017 8:21 PM, Yasser Zamani wrote:
>
>
> On 9/18/2017 7:35 PM, Phillips, Bruce A wrote:
>> We still have a couple of web apps that are using Struts version 2.3.32
>>
>> We want to update those web apps to the latest version of Str
On 9/18/2017 7:35 PM, Phillips, Bruce A wrote:
> We still have a couple of web apps that are using Struts version 2.3.32
>
> We want to update those web apps to the latest version of Struts but I’m not
> sure what version to update to.
>
> I see a 2.5.13 and a 2.3.34 – both tags seem to be rec
On 9/18/2017 7:35 PM, Phillips, Bruce A wrote:
> We still have a couple of web apps that are using Struts version 2.3.32
>
> We want to update those web apps to the latest version of Struts but I’m not
> sure what version to update to.
>
> I see a 2.5.13 and a 2.3.34 – both tags seem to be rec
On 9/18/2017 7:35 PM, Phillips, Bruce A wrote:
> We still have a couple of web apps that are using Struts version 2.3.32
>
> We want to update those web apps to the latest version of Struts but I’m not
> sure what version to update to.
>
> I see a 2.5.13 and a 2.3.34 – both tags seem to be rec
I reviewed Strut's internal codes and seems following works:
import org.apache.struts2.dispatcher.HttpParameters;
import org.apache.struts2.dispatcher.Parameter;
import org.apache.struts2.interceptor.HttpParametersAware;
import java.util.HashMap;
import java.util.Map;
/**
* Created by user on
ached it to this message as a text file.
>
> Later,
>
> Andy
>
>
>
>> On 12 Sep 2017, at 15:56, Yasser Zamani wrote:
>>
>> Each one you're more comfortable or is more important for you.
>>
>> On 9/12/2017 7:08 PM, LAW Andy wrote:
>>
Maybe you have a similar issue of [1].
Say you have X that extends ActionSupport. Please make sure if every X
has been instantiated not manually (e.g. X = new X() inside your java
files). They should be instantiated via Strut's object factory ( e.g.
https://issues.apache.org/jira/browse/WW-4813
On 9/12/2017 11:09 PM, Yasser Zamani wrote:
> I should correct myself; You can write it in both #session['foo'] or
> #session.foo
>
> So, now you should examine that previousBusinessStateList exists in
> session on that action call which return that jsp including
The [1] writes:
> you need to specify
>
> struts.multipart.saveDir=
> property in either struts.xml file as a constant entry or you need to specify
> that in struts.properties file choice is all yours.
>
> struts.multipart.saveDir - The directory where the uploaded files will be
> placed. If thi
I should correct myself; You can write it in both #session['foo'] or
#session.foo
So, now you should examine that previousBusinessStateList exists in
session on that action call which return that jsp including s:select tag.
On 9/12/2017 11:02 PM, Yasser Zamani wrote:
> It means
It means you have Can someone take a look at this and tell me what exactly it means and
> possibly how to resolve? My log file fills up with these.
> 12:43:57,952 ERROR
> [org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler]
> (ajp-jbappprd4/172.26.11.62:8409-4) Exception occurred duri
Each one you're more comfortable or is more important for you.
On 9/12/2017 7:08 PM, LAW Andy wrote:
>
>> On 12 Sep 2017, at 14:46, Yasser Zamani wrote:
>>
>> Great! they mean devMode works.
>>
>> Could you post your whole stacktrace of exception (including
#x27;IDontExist' with
> value ['true', ]
>
>
> Followed by the now-traditional NPE-based errors because the Container isn’t
> being set in the Action.
>
> This is now running 2.3.12 Struts on 8.0.21 Tomcat.
>
> Later,
>
> Andy
>
>
>
>> On
No, "DEBUG" level is not interesting for me now. Also, as I saw, it
seems this specific message is not dependent to devMode value [1].
Could you please reduce your log4j2 root level to only log "WARN" ? so
it'll be less puffy and simpler to examine.
Then please check if devMode works, open
htt
I sense you may think Struts uses Spring to inject Container. No,
"Internally, the framework uses its own dependency injection container
that is very similar to Google Guice" [1].
So do not worry about Spring and it's auto-wiring.
Did you try "devmode=true" and then examining output for any war
I recently have resolved very similar issue at [1].
That was because of wrong PUBLIC ID in his validator xmls.
But in general, please add to your struts.xml and configure log4j2 for your application [2] and
then run your application and review it's output for any warnings. I
guess you should l
ons-lang3-3.5.jar]
> [Loaded org.apache.commons.lang3.CharSequenceUtils from
> file:/home/alkao/tomee/apache-tomee-plus-7.0.3/lib/commons-lang3-3.5.jar]
> ...
>
>
> On Mon, Sep 4, 2017 at 1:30 PM, Yasser Zamani
> wrote:
>
>>>> Although I had done the following:
>>>> e
WEB-INF/lib/struts2-core-2.5.12.jar
>>> hello-world/WEB-INF/lib/freemarker-2.3.23.jar
>>> hello-world/WEB-INF/lib/log4j-core-2.8.2.jar
>>> hello-world/WEB-INF/lib/log4j-api-2.8.2.jar
>>> hello-world/WEB-INF/lib/commons-io-2.4.jar
>>> hello-world/WEB-
mons-lang3*
> /home/alkao/Struts2/struts-2.5.12/lib/commons-lang3-3.6.jar
>
> Therefore the helloworld link in index.jsp did not see the
> /home/alkao/Struts2/struts-2.5.12/lib/commons-lang3-3.6.jar.
>
>
> On Sat, Sep 2, 2017 at 2:46 PM, Yasser Zamani
> wrote:
>
>>
ld/WEB-INF/lib/commons-lang3-3.6.jar
>
> However, the helloworld link in index.jsp did not see it.
>
>
> On Sat, Aug 26, 2017 at 7:43 PM, Yasser Zamani
> wrote:
>
>> I checked it's codes and seems ok. It has a dependency to struts 2.5.12
>> which has (not optiona
I checked it's codes and seems ok. It has a dependency to struts 2.5.12 which
has (not optional) dependency to commons lang3 3.6. So you should have commons
lang3 3.6 in your war lib. Do you? Or maybe you have lower version of commons
lang3 jar in your tomcat lib? Please check both.
albert kao
nt.regSubmitForm.method ="POST";
> document.regSubmitForm.action = url;
> document.regSubmitForm.submit();
> }
>
> -Original Message-
> From: Yasser Zamani [mailto:yasser.zam...@live.com]
> Sent: Saturday, August 12, 2017 12:12 AM
> T
Hello,
Sorry for late answer. I thought dev mailing list also receives user
mails but now I subscribed to user mailing list and I have your mails on
my radar hereafter.
Although this is not a Struts issue, I reviewed your jsp and I think if
your submitEPay function works and opens a popup wind
Hi,
It has been done by
"/xwork-core/src/main/java/com/opensymphony/xwork2/conversion/impl/XWorkConverter.java"
inside Struts.
"By default, all conversion errors are reported using the generic i18n
key xwork.default.invalid.fieldvalue, which you can override (the
default text is Invalid fie
I could not re-produce it with most recent version, 2.3.16. Both DTD
versions work correctly on an off-line Tomcat :)
I think there is a mis-version-configuration between struts and xwork
with that non-maven old application. Sorry for the inconvenience!
Thanks!
On 12/15/2013 03:53 PM, Lukasz
(However, it's some was confusing that "xwork-validator-1.0.3.dtd" is
present in "xwork.jar" but we cannot use it "*offline*" until Struts
also use it internally)
Sorry for the inconvenience!
Thanks for your reply.
Sincerely Yours,
Yasser.
On 12/15/2013
Hi there,
We have a Struts2 application with some validation XMLs with following
"DOCTYPE":
http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";>
When we run this application on a server which has access to
"struts.apache.org", there is no problem. But when we run it on a server
wh
201 - 269 of 269 matches
Mail list logo