Re: Need advice for Struts latest book + CD
https://www.amazon.com/s?k=%22struts+2%22+books On Tue, Jul 9, 2024 at 5:59 AM Deepak Lalchandani wrote: > Hi Dave, > Could you please mention the name of the below books ? > > IIRC one had an accompanying DVD (which… surprising). > > It’s possible mine was the last “sponsored” one, and that was in 2009-2010. > > Regards, > Deepak Lalchandani > > > On Tue, 9 Jul 2024, 3:25 pm Dave Newton, wrote: > >> The books found on Amazon/etc are the latest. The latest are mostly free >> Kindle “books”; I’d be wary, but that’s just me. >> >> IIRC one had an accompanying DVD (which… surprising). >> >> It’s possible mine was the last “sponsored” one, and that was in >> 2009-2010. >> >> d >> >> em: davelnew...@gmail.com >> mo: 908-380-8699 >> gh: davelnewton <https://github.com/davelnewton> >> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> >> >> >> >> On Fri, Jul 5, 2024 at 03:27 Deepak Lalchandani >> wrote: >> >>> Hi community, >>>I need advice for Struts latest book + CD which can help me to >>> learn >>> and apply the concepts of Struts. >>> >>> Please advice >>> >>> Thanks, >>> Deepak >>> >> -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Need advice for Struts latest book + CD
The books found on Amazon/etc are the latest. The latest are mostly free Kindle “books”; I’d be wary, but that’s just me. IIRC one had an accompanying DVD (which… surprising). It’s possible mine was the last “sponsored” one, and that was in 2009-2010. d em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> On Fri, Jul 5, 2024 at 03:27 Deepak Lalchandani wrote: > Hi community, >I need advice for Struts latest book + CD which can help me to learn > and apply the concepts of Struts. > > Please advice > > Thanks, > Deepak >
Re: Inline handlers and content security policy in struts2 6.3
On Wed, Mar 13, 2024 at 10:43 AM Aleksandr Kubar wrote: > I would like to ask whether there is any inbuilt solution from struts2 to > handle inline handlers or maybe something planned to do in next releases? > You mean like something that gathers up all the inline handlers and shovels them into an external block? I don't know of anything that does this or is planned. It seems like it'd be a risky automation to generalize. I would say that it's something that could likely be automated *locally* in that JSP parsing is (reasonably) straightforward and could be done with existing text-based tools. I'd still probably just do it by hand, but I could see the usefulness of a first-pass being done w/ some small scripting. d.
Re: Requesting support on struts tiles plugin migration
Tangential: Please subscribe to the Strutd User mailing list. We currently have to approve your messages manually. On Mon, Feb 26, 2024 at 09:04 SARAVANAN SIVAGURU wrote: > Hi Luk > > As I mentioned earlier am using the listener > (org.apache.struts2.tiles.StrutsTilesListener) which you already suggested. > And removed all the context param from the XML file. > > When I try to load the configuration files automatically the definitions > are not getting loaded as expected. Please find the attachment for the > web.xml file and the image for the location of the tiles.xml file on the > local application and also to the classpath jar file. > > Local Path - > C:\Users\sisa1008\Software\Apache\apache-tomee-plus-8.0.14\apps\ftmsconsole\ftmsconsole-webapp\WEB-INF\config\tiles > Classpath file - > C:\Users\sisa1008\Software\Apache\apache-tomee-plus-8.0.14\apps\ftmsconsole\ftmsconsole-webapp\WEB-INF\lib\kawa-gui-5.5.6-SNAPSHOT.jar\META-INF\ > > Could you please suggest to me what is wrong over here or is there any bug > on discovering the files with wildcard. > > Thanks and Regards, > Saravanan.S > FTMS/NFT APP-DEV Team > Mob:- +91 9715644123. > This e-mail may contain confidential information. If you have received > this e-mail in error, please notify the sender and then immediately delete > it from your system. This email and the contents of an attachment to this > e-mail may contain software viruses which could damage your own computer > system. Although Nielsen has taken reasonable precautions to minimize this > risk, it cannot accept liability for any damage you may sustain as a result > of software viruses > -- > *From:* SARAVANAN SIVAGURU > *Sent:* Friday, February 23, 2024 5:51 PM > *To:* user@struts.apache.org > *Subject:* Re: Requesting support on struts tiles plugin migration > > Hi Luk > > Yes, I am using the Struts Tiles Listener already > > > > org.apache.struts2.tiles.StrutsTilesListener > > > If I didn't mention below context param, > > > > org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > > classpath*:/META-INF/org.kawa.*tiles*.xml,classpath*:/META-INF/com.*.tiles.xml,/WEB-INF/config/tiles/*.tiles.xml > > > Am able to load only the tiles configuration file which is available on > the WEB-INF folder that too only if I mentioned full path when I tried with > the wildcard am not able to load the configuration even from the WEB-INF > folder. > > On whatever case, I am unable to load the configuration files from the > classpath(META-INF). > The completeAutoLoad which you suggested is not available as a part of > struts2-tiles plugin - 6.3.0.2 version right. Is there any other > alternative functionality available to load the configuration files with > wildcard? > > Currently I am trying to create the complete auto load functionality in my > common framework code to get used to the application which are consuming. > > Thanks and Regards, > Saravanan.S > FTMS/NFT APP-DEV Team > Mob:- +91 9715644123. > This e-mail may contain confidential information. If you have received > this e-mail in error, please notify the sender and then immediately delete > it from your system. This email and the contents of an attachment to this > e-mail may contain software viruses which could damage your own computer > system. Although Nielsen has taken reasonable precautions to minimize this > risk, it cannot accept liability for any damage you may sustain as a result > of software viruses > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org
Re: Requesting support on struts tiles plugin migration
(Tangential: please consider subscribing to the Struts User mailing list, currently we have to manually approve your emails 👍🏻) em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com> On Fri, Feb 23, 2024 at 08:14 SARAVANAN SIVAGURU wrote: > Hi Luk > > Yes, I am using the Struts Tiles Listener already > > > > org.apache.struts2.tiles.StrutsTilesListener > > > If I didn't mention below context param, > > > > org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > > classpath*:/META-INF/org.kawa.*tiles*.xml,classpath*:/META-INF/com.*.tiles.xml,/WEB-INF/config/tiles/*.tiles.xml > > > Am able to load only the tiles configuration file which is available on > the WEB-INF folder that too only if I mentioned full path when I tried with > the wildcard am not able to load the configuration even from the WEB-INF > folder. > > On whatever case, I am unable to load the configuration files from the > classpath(META-INF). > The completeAutoLoad which you suggested is not available as a part of > struts2-tiles plugin - 6.3.0.2 version right. Is there any other > alternative functionality available to load the configuration files with > wildcard? > > Currently I am trying to create the complete auto load functionality in my > common framework code to get used to the application which are consuming. > > Thanks and Regards, > Saravanan.S > FTMS/NFT APP-DEV Team > Mob:- +91 9715644123. > This e-mail may contain confidential information. If you have received > this e-mail in error, please notify the sender and then immediately delete > it from your system. This email and the contents of an attachment to this > e-mail may contain software viruses which could damage your own computer > system. Although Nielsen has taken reasonable precautions to minimize this > risk, it cannot accept liability for any damage you may sustain as a result > of software viruses >
Re: Issue with "Hello World Using Struts 2"
There's nothing attached. Please include relevant information in the email body. Please subscribe to the user list so we don't have to approve each message manually. On Fri, Dec 8, 2023 at 11:24 AM Ruffin, Ronald wrote: > Hi again folks!! > > > > Sorry for my multiple emails, but I’m trying to get this example working > so I can move onto further Struts training. After clicking a link to find > the correct library in Maven, I’m now getting the attached “Dispatcher > Init” issue. > > > > Btw, I’m running on Java JDK 8. What’s a good fix for this? > > > > Thanks, > > > > Ron > > > > Ron Ruffin > > *Web Software Developer V, SSDA* > > *Empower AI **(Formerly NCI)* > > Office: TBD | Mobile: 937.490.9754 > > *rruf...@empower.ai * > > > > > > *From:* Ruffin, Ronald > *Sent:* Friday, December 8, 2023 11:03 > *To:* user@struts.apache.org > *Subject:* RE: Issue with "Hello World Using Struts 2" > > > > Hi Struts folks!! > > > > Something else I saw strikes me as odd. I’m getting an issue with > HelloWorldAction extending ActionSupport, where Netbeans isn’t seeing where > ActionSupport is defined, even though I’ve placed all the dependencies into > the app per the instructions. > > > > Is there a way to address this? > > > > Thanks, > > > > Ron > > > > Ron Ruffin > > *Web Software Developer V, SSDA* > > *Empower AI **(Formerly NCI)* > > Office: TBD | Mobile: 937.490.9754 > > *rruf...@empower.ai * > > > > > > *From:* Ruffin, Ronald > *Sent:* Friday, December 8, 2023 09:28 > *To:* user@struts.apache.org > *Subject:* Issue with "Hello World Using Struts 2" > > > > Hi folks! > > > > I’m working my way through the basic Struts 2 tutorials, including “Hello > World using Struts 2”, and although I think I have everything set up as the > tutorial recommends, when I run the app in Jetty, I get the attached stack > trace, and when I try to open it my browser, I get the attached 404 error > from Jetty. > > > > Is there a fix for this, or am I missing something? > > > > Thanks, > > > > Ron > > > > Ron Ruffin > > *Web Software Developer V, SSDA* > > *Empower AI **(Formerly NCI)* > > Wright-Patterson Air Force Base > > Office: TBD | Mobile: 937.490.9754 > > *rruf...@empower.ai * | www.empower.ai > > Elevate the Mission > > > If you have received this message in error, please contact the sender > immediately and be aware that the use, copying, or dissemination of this > information is prohibited. This email transmission contains information > from Empower AI, Inc. that may be considered privileged or confidential and > is intended solely for the named recipient. Please note: NCI Information > Systems, Inc is now Empower AI, Inc, request that you update the contact > information you may have for me, instead of @nciinc.com it will now be @ > empower.ai > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Issue with "Hello World Using Struts 2"
Please subscribe to the list to receive emails (and save us from approving all the messages manually). On Fri, Dec 8, 2023 at 11:08 AM Dave Newton wrote: > I can't see the log4j.xml file so it's difficult to say why it might be > failing parsing. > > On Fri, Dec 8, 2023 at 11:06 AM Ruffin, Ronald > wrote: > >> Hi folks! >> >> >> >> I’m working my way through the basic Struts 2 tutorials, including “Hello >> World using Struts 2”, and although I think I have everything set up as the >> tutorial recommends, when I run the app in Jetty, I get the attached stack >> trace, and when I try to open it my browser, I get the attached 404 error >> from Jetty. >> >> >> >> Is there a fix for this, or am I missing something? >> >> >> >> Thanks, >> >> >> >> Ron >> >> >> >> Ron Ruffin >> >> *Web Software Developer V, SSDA* >> >> *Empower AI **(Formerly NCI)* >> >> Wright-Patterson Air Force Base >> >> Office: TBD | Mobile: 937.490.9754 >> >> *rruf...@empower.ai * | www.empower.ai >> >> Elevate the Mission >> >> >> If you have received this message in error, please contact the sender >> immediately and be aware that the use, copying, or dissemination of this >> information is prohibited. This email transmission contains information >> from Empower AI, Inc. that may be considered privileged or confidential and >> is intended solely for the named recipient. Please note: NCI Information >> Systems, Inc is now Empower AI, Inc, request that you update the contact >> information you may have for me, instead of @nciinc.com it will now be @ >> empower.ai >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > > -- > em: davelnew...@gmail.com > mo: 908-380-8699 > gh: davelnewton <https://github.com/davelnewton> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> > bl: Maker's End Blog <https://blog.makersend.com> > > -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Issue with "Hello World Using Struts 2"
I can't see the log4j.xml file so it's difficult to say why it might be failing parsing. On Fri, Dec 8, 2023 at 11:06 AM Ruffin, Ronald wrote: > Hi folks! > > > > I’m working my way through the basic Struts 2 tutorials, including “Hello > World using Struts 2”, and although I think I have everything set up as the > tutorial recommends, when I run the app in Jetty, I get the attached stack > trace, and when I try to open it my browser, I get the attached 404 error > from Jetty. > > > > Is there a fix for this, or am I missing something? > > > > Thanks, > > > > Ron > > > > Ron Ruffin > > *Web Software Developer V, SSDA* > > *Empower AI **(Formerly NCI)* > > Wright-Patterson Air Force Base > > Office: TBD | Mobile: 937.490.9754 > > *rruf...@empower.ai * | www.empower.ai > > Elevate the Mission > > > If you have received this message in error, please contact the sender > immediately and be aware that the use, copying, or dissemination of this > information is prohibited. This email transmission contains information > from Empower AI, Inc. that may be considered privileged or confidential and > is intended solely for the named recipient. Please note: NCI Information > Systems, Inc is now Empower AI, Inc, request that you update the contact > information you may have for me, instead of @nciinc.com it will now be @ > empower.ai > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Struts 6.3 tags do not automatically evaluate the value field against the ognl stack
I’m don’t recall if it was intentional but iirc the advice we used to give was to always use the OGNL expression syntax to be explicit and clear. (Iiarc there was a reason for doing this at one point as well.) Seems like still good advice. It should get into the docs, though. On Fri, Nov 24, 2023 at 09:35 Nate Kerkhofs wrote: > Greetings, > > I am currently upgrading a Struts 2.5 project to Struts 6.3, and I ran > into an issue with Struts 6.3 tags not evaluating the value against the > ognl stack. I have reproduced this issue both with the radio map included > in the struts2-core jar and with a custom radiomap.ftl, and also with an > s:textfield instead of an s:radio. In both cases, the value attribute on > the source page doesn't get resolved against the ognl stack, instead using > the string literal entered in the value attribute. > > I have about 140 s:radio components formatted like below, with "locked" > being a Boolean field in the Action java controller: > > > list="lockedOptionMap" id="locked" name="locked" value="locked" /> > > In this case, none of the radios with a value set are setting their > checked status based on the boolean value because parameters.nameValue > doesn't get evaluated by ognl. If I remove the value attribute or make it > an explicit ognl expression using %{}, it does resolve the attribute > against the ognl stack and select the right item, but with the code above, > the value got resolved against the ognl ValueStack in 2.5, but that doesn't > happen in 6.3. Instead, it just sets nameValue to "locked" or whatever > string literal "value" is set to. > > I cannot find any mention of this breaking change in the migration guide, > though I did find an issue dating back to 2007 mentioning a similar > problem: https://issues.apache.org/jira/browse/WW-1907 which means that > this either is a regression or it a deliberate design decision to no longer > evaluate this property against the ognl stack. > > Either way, I'd like to know whether this is an intentional change, and if > so what the recommended way is to use a field on the ognl stack to > configure the value of a field: should I add an explicit %{} evaluation > symbol around the value attribute, or should I just leave out the value > attribute entirely, instead relying solely on the name attribute set on the > tag? > > Kind regards, > > Nate Kerkhofs >
Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0
You could check the release notes, e.g., https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=231118403#content/view/231118403 On Fri, Jun 23, 2023 at 00:46 Ankit Garg wrote: > TCS Confidential > > Dear Lukasz Lenart, > > Would you like to share some references to understand the impact between > 6.0.0.0 to 6.1.2.1 i.e. June 2023 release? > https://cwiki.apache.org/confluence/display/WW/Migration+Guide -- We have > explored but could find specific documentation stating difference between > 6.0.0.0 to 6.1.2.1. > > Thank you. > > Regards, > Ankit Garg > > > TCS Confidential > -Original Message- > From: Lukasz Lenart > Sent: Tuesday, June 6, 2023 10:38 PM > To: Struts Users Mailing List > Subject: Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0 > > "External email. Open with Caution" > > pon., 5 cze 2023 o 17:07 Ankit Garg napisał(a): > > We are following Struts 2.0 in Action and below references. > > https://struts.apache.org/getting-started/ > > Let us know if any other material should be good to leverage in addition > to what we have. Thank you. > > Those tutorials are a good starting point, you can also examine our > examples which provides a practical knowledge > https://github.com/apache/struts-examples > > > 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 > > =-=-= > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0
Why would you rewrite not targeting the latest? On Mon, Jun 5, 2023 at 02:06 Ankit Garg wrote: > TCS Confidential > > Thank you Dave. > As per our understanding 1.3.x to 2.0.x should be rewrite where most of > the effort would be required. > How about further upgrading from 2.0.x to 6.0.x (aka 2.6.x)? Need some > advice on possible impact and required effort. Thank you. > > -Original Message- > From: Dave Newton > Sent: Sunday, June 4, 2023 6:15 PM > To: Struts Users Mailing List > Subject: Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0 > > "External email. Open with Caution" > > On Sun, Jun 4, 2023 at 00:29 Ankit Garg wrote: > > > Need help and expert connect to understand more on impact and > > approaches, effort estimation etc. > > > > Effort: unclear how anyone could guess. Depends entirely on codebase size, > architecture, scale reps, etc. TL;DR: you’llrewrite the entire web layer. > The *complexity* depends on how well separated the web and business layers > in the existing app are. The *time* depends on how much of it there is. You > may want to convert one piece at a time. > > Impact: in what sense? > > Approaches: pick an easy part and use it to gauge level of effort, in > particular comparing it to a non-S2 approach. > > d > -- > em: davelnew...@gmail.com > mo: 908-380-8699 > gh: davelnewton <https://github.com/davelnewton> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> > bl: Maker's End Blog <https://blog.makersend.com> > > TCS Confidential > =-=-= > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Urgent and priority help on Struts 1.3 upgrade to Struts 6.0
On Sun, Jun 4, 2023 at 00:29 Ankit Garg wrote: > Need help and expert connect to understand more on impact and approaches, > effort estimation etc. > Effort: unclear how anyone could guess. Depends entirely on codebase size, architecture, scale reps, etc. TL;DR: you’llrewrite the entire web layer. The *complexity* depends on how well separated the web and business layers in the existing app are. The *time* depends on how much of it there is. You may want to convert one piece at a time. Impact: in what sense? Approaches: pick an easy part and use it to gauge level of effort, in particular comparing it to a non-S2 approach. d -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
And what are you sending, what is the action, what is the action configuration? On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam wrote: > while hitting the backens (action) call the error getting in the logs. > > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton wrote: > > > And when does this happen? > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > wrote: > > > > > Hi, > > > > > > > > > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > > > Please help me on this. > > > > > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - > Could > > > not create and/or set value back on to object > > > > > > java.lang.InstantiationException: java.io.Serializable > > > > > > at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] > > > > > > at > > > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at ognl.ASTProperty.getValueBody(ASTProperty.java:125) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.getValue(SimpleNode.java:258) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.ASTChain.setValueBody(ASTChain.java:222) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.setValue(SimpleNode.java:308) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] > > > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat > > 2023-02-09 10:21:48,156 INFO [STDOUT] e=200905221634)] > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA > date=200905221634)] > > at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332] > > Caused by: java.lang.NoSuchMethodException: java.io.Serializable.() > > at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_332] > > at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332] > > ... 77 more > > > > > > > > -- > Thanks & Regards > Swapna Ponnam > Mobile:+91-9959207096 > Mail : swapna.pon...@gmail.com > -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: ActionServlet for Java 11
On Tue, Jul 26, 2022 at 15:34 Heidt, Larry wrote: > #1) At a low level, would a version of > org.apache.struts.action.ActionServlet which imports jakarta.servlet.* > exist somewhere else ? Unlikely; the last S1 release was ~a decade before Java 11 was GA, and S1 was EOLed ~5 yrs before Java 11. d. -- em: davelnew...@gmail.com mo: 908-380-8699 gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Maker's End Blog <https://blog.makersend.com>
Re: Configuration question
Are you asking about default-action-ref? On Mon, Feb 22, 2021 at 08:28 Tamás Barta wrote: > Hi, > > I would like Struts 2 to execute MyAction when there is no action mapping > for a path. So I set > > >... > > > in struts.xml. > > When I request to url /foo or /foo.action, it works as expected, my Action > is executed without any exceptions. But when I request to /foo/foo.action > then my Action is executed too, but an error log appears: > > 14:21:38,375 ERROR [DispatcherErrorHandler] (default task-5/) > com.opensymphony.xwork2.config.ConfigurationException: There is no Action > mapped for namespace [/foo] and action name [foo] associated with context > path [].: There is no Action mapped for namespace [/foo] and action name > [foo] associated with context path []. - [unknown location] > at > > com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:195) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > at > > org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:57) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > at > > org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:32) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > at > > com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:60) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > at > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > at > > org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > at > > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141) > [org.apache.struts-struts2-core-2.5.26.jar:2.5.26] > ... > > I would like to avoid this kind of ERROR log and handle /foo/foo.action the > same as /foo.action. > What should I do for that? > > Thanks, Tamás > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: CVE-2019-0233 is Struts v1 vulnerable?
You’d need to create a variation of one of the PoCs, you can likely search around for one. That said—I don’t see how S1 could be vulnerable since it’s a completely different mechanism. In general, no S2 vulnerabilities will apply to S1 *ever* unless it’s explicitly related to a dependent library—there’s no real relationship between S1 and S2. On Fri, Aug 21, 2020 at 15:39 Rayne Anderson wrote: > You are probably correct on due to the different frameworks. If I do need > > to test Struts v1 where do I obtain the test instructions from? I could > > not find them when searching earlier. > > > > Regards, Rayne > > > > IBM Watson Financial Services > > 10925 David Taylor Drive > > Charlotte, NC 28262-1040, US > > MG82/202 > > (704) 501-0331 > > > > > > > > > > From: Lukasz Lenart > > To: Struts Users Mailing List > > Date: 08/21/2020 05:57 AM > > Subject:[EXTERNAL] Re: CVE-2019-0233 is Struts v1 vulnerable? > > > > > > > > pt., 21 sie 2020 o 11:30 Rayne Anderson napisał(a): > > > > > > I know that Apache Struts File upload CVE-2019-0233 applies to Struts > > v2. > > > Does the CVE apply to Struts v1.3.8? > > > > I would say no as these are totally different frameworks but we didn't > > test Struts 1.3.8 against this vulnerability as Struts 1 has reached > > End-of-Life a few years ago. > > > > > > 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 > > > > > > > > > > > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: [ANN] [SECURITY] Announcing CVE-2019-0230 (Possible RCE) and CVE-2019-0233 (DoS) security issues
On Thu, Aug 13, 2020 at 20:08 Zahid Rahman wrote: > Maybe I misunderstand Definitely a possibility. -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: SMI allowed methods not working for struts 2.5.17
On Tue, Jun 2, 2020 at 03:14 Lukasz Lenart wrote: > wt., 2 cze 2020 o 09:05 Sailaja S napisał(a): > > How do I invoke multiple methods with the same action? I did post this in > > stackover flow as well. I appreciate your time and inputs. > > Where? https://stackoverflow.com/questions/62068693/how-to-invoke-multiple-methods-from-struts2-5-with-smi-and-with-constant-name -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: ./mvnw spring-boot:run struts equivalent
No, you create a web app with it. The S2 archtypes *are* runnable, or you can create a web app in the typical way, or you can follow a tutorial, including the minimal one at https://struts.apache.org/getting-started/how-to-create-a-struts2-web-application.html . On Thu, May 28, 2020 at 21:51 Zahid Rahman wrote: > Hi, > I git cloned https://github.com/apache/struts this. > then I ran ./mvnw clean package install. > > is there a struts equivalent *./mvnw spring-boot:run* to run it ? > I tried ./mvnw jetty:run then didn't work. > > > Backbutton.co.uk > ¯\_(ツ)_/¯ > <http://www.backbutton.co.uk> > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Archetype
It contains an enum? That's not much to go on--there are some jQuery archetypes for the jQuery plugin. On Thu, May 28, 2020 at 1:49 PM Zahid Rahman wrote: > Hi, > > I came across an archetype which has an enum class. It was designed by some > one who has written a book on struts. > > Sorry I'm not good with names. > > If you know the archetype I mean please give me the link to it. > > I don't think it is one of these. > https://struts.apache.org/maven-archetypes/ > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Issue adding filter to struts2-archetype-starter project
`import java.nio.file.DirectoryStream.Filter` is not a servlet filter. Dave
Re: How to (cleanly) disable specific namespace / action hierarchy at runtime
What's the specific use case? What's the logic that determines availability (e.g., is this an auth/auth issue)? An interceptor or action base class would be my first approach. On Wed, Mar 25, 2020 at 10:39 Matias Rodriguez wrote: > Hi! > > I'm looking for a clean way to disable/enable (at runtime) specific > namespace / specific action hierarchy. An option is to use an Interceptor, > but: is there another *standard *way to do this? With *disable* I mean, for > example, a HTTP 404 server response. > > Thanks! > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: RMI client code in Struts
extValve.java:96) > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) > > > org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) > > org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) > > > org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) > > > org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) > org.apache.tomcat.util.net > .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1598) > org.apache.tomcat.util.net > .SocketProcessorBase.run(SocketProcessorBase.java:49) > > > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > > > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > > > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > java.base/java.lang.Thread.run(Thread.java:834) > > > > > You are seeing this page because development mode is enabled. > Development mode, or devMode, enables extra debugging behaviors and > reports to assist developers. To disable this mode, set: > >struts.devMode=false > > in your|WEB-INF/classes/struts.properties|file. > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: [OT] Re: Maven Warning. Ubuntu Users.; javacodegeeks.com : Global Impact at the highest levels.
It was more of a "why are you posting this here" than a recap of multiple inheritance in Java (which I feel reasonably comfortable with). On Wed, Jan 8, 2020 at 5:40 PM Zahid Rahman wrote: > It requires some time studying the subject ; I would suggest reading it. > Sorry no short answer. > -- tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Maker's End Blog <https://blog.makersend.com>
Re: [OT] Re: Maven Warning. Ubuntu Users.; javacodegeeks.com : Global Impact at the highest levels.
What? On Wed, Jan 8, 2020 at 5:28 PM Zahid Rahman wrote: > -- Forwarded message - > From: Zahid Rahman > Date: Wed, 8 Jan 2020, 19:51 > Subject: Re: [OT] Re: Maven Warning. Ubuntu Users > To: Tomcat Users List > > > Another example of using maven 2015 version and the impact of unknown > warning by MAVEN can have on application development across the Globe. > Let'sEncrypt guy (Shultz) dismissed as unimportant. > > https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/ > > > Mary Zheng > Posted by: Mary Zheng > <https://examples.javacodegeeks.com/author/mary-zheng/> in Core Java > <https://examples.javacodegeeks.com/category/core-java/> December 27th, > 2019 > 0 > < > https://examples.javacodegeeks.com/multiple-inheritance-java-example/#respond > > > 433 Views > > She works as a senior Software Engineer in the telecommunications sector > where she acts as a leader and works with others to design, implement, and > monitor the software solution. > > https://examples.javacodegeeks.com/multiple-inheritance-java-example/ > > 2. Technologies Used > > The example code in this article was built and run using: > >- Java 11 >- Maven 3.3.9 >- Eclipse Oxygen >- Junit 4.12 > > > On Wed, 8 Jan 2020, 12:36 zahid, wrote: > > > ok > > > > Thank you. > > > > www.backbutton.co.uk > > ♡۶¯\_(ツ)_/¯ ♡۶ > > Marriage of loose and tight coupling > > -> healthy applications > >♡۶ > > javac Garden/Vegetables/VineVegetable.java > > java Garden.Vegetables.VineVegetable > > Wot No! -classpath -class-path even -cp! > > > > On 08/01/2020 09:48, Mark Thomas wrote: > > > On 08/01/2020 08:41, Peter Kreuser wrote: > > >> Zahid, > > >> > > >> you‘re talking to one of the most respected members of the community > > > like this? > > > > > > All participants in Apache communities are expected to follow the code > > > of conduct: > > > > > > http://www.apache.org/foundation/policies/conduct.html > > > > > > This is irrespective of whether you are replying to a message from one > > > of the founders of the ASF or a first time contributor. > > > > > >> STFU or leave. > > > While I understand the frustration, statements like the above are only > > > going to add heat to an already heated situation. Please try and > refrain > > > from such responses. > > > > > >> This calls for an ban! > > > As one of the list moderators, that thought crossed my mind as soon as > I > > > saw the off-topic Linux vs Windows post. I hoped that it was a one-off. > > > When it became clear that it wasn't, I posted my request to keep > threads > > > on topic. I hoped that would be sufficient. Clearly it wasn't. > > > > > > I would urge everyone not to reply to off-topic posts. > > > > > > If you want to bring a post you find problematic to the attention of > the > > > moderators then please feel free to mail the list moderators at: > > > users-ow...@tomcat.apache.org > > > > > >>> Am 08.01.2020 um 06:06 schrieb Zahid Rahman : > > >>> > > >>> > > >>>> A version of what? > > >>> MAVEN > > >>> MAVEN > > >>> MAVEN > > >>> > > >>> In light of this video https://youtu.be/idViw4anA6E > > >>> Of http. > > >>> > > >>> You and your let's encrypt must be the longest troll on this line. > > > No. > > > > > > How to configure Apache Tomcat with keys and certificates provided by > > > Let's Encrypt is entirely on-topic for the Apache Tomcat users' mailing > > > list. > > > > > >>> Take your wares and peddle them somewhere else carpet beggar. > > > Zahid, > > > > > > Please stop this now. > > > > > > Please keep your posts to this list on topic. > > > > > > Please ensure that any posts are consistent with the Apache Code of > > Conduct. > > > > > > If you continue to disrupt this community with off-topic posts and/or > > > behaviour that is inconsistent with the Apache Code of Conduct then the > > > list moderators will either require all your posts to be moderated or > > > simply block you from posting at all. > > > > > > Mark > > > wearing his list moderator hat > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > -- > > www.backbutton.co.uk > > ♡۶¯\_(ツ)_/¯ ♡۶ > > Marriage of loose and tight coupling > > -> healthy applications > >♡۶ > > java -cp classpath class-path > > > > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Black Box Tesing v White Box Testing
On Wed, Dec 4, 2019 at 07:56 Zahid Rahman wrote: > The space and defence don't share what they are doing. So I don't think > yours is reasonable statement that you know what is happening in the > aerospace and defence industry. Hm. I don't think your assumption that I haven't done defense contracting is a reasonable one, but we'll agree to disagree on that one. (If you're wondering, encrypted radio systems, and consulting on guidance systems. And I still know the people I worked with--and people that use the systems or their descendents.) FWIW: you're going to find people with a pretty wide background in this group, many with decades of experience across a full spectrum of domains. Speaking for myself, I come from both embedded and application development going on 30+ years now. I know others here have similar time in the trenches. None of us are resistant to new ideas or ways of looking at things--but we have an appreciation for factual claims and accurate representations. Anyway you jumped to a conclusion of reverse engineering when I was > referring to the benefit of traceability when using interpretive code. I "jumped" to reverse engineering because you specifically said an advantage of Java was decompilation (not unique to Java), and that's a primary component of reverse engineering almost by definition. d. -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Black Box Tesing v White Box Testing
On Wed, Dec 4, 2019 at 07:37 Zahid Rahman wrote: > I'm not talking of reverse engineering, my point is traceability. Sure you are--you specifically brought up decompiling, which is the first step of reverse-engineering. And in a jar with no debug info, or obfuscation, it's not the last step. (And not getting into external modifications to a jar which could happen during load.) If you can decompile code then if there is a problem then there is a chance > that you can trace it. With .exe or dll you cannot trace the problem. Of course you can--it's just software. It's how we used too develop all the time. -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Black Box Tesing v White Box Testing
On Wed, Dec 4, 2019 at 06:36 Zahid Rahman wrote: > You're right except in a bespoke hardware , software environment they tend > to use 68k Motorola chip to eliminate internal unknown risks. I haven't worked on a 68k product for twenty years--I'd be *very* surprised if anyone had designed one into a system in the last decade or more. I'm not sure if they still produce the hardened version, but I don't recall many space-based systems using them, although it was in some military hardware--a long time ago. But that's not really relevant--almost nobody does embedded systems work; it's an edge-case. -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Black Box Tesing v White Box Testing
On Wed, Dec 4, 2019 at 01:16 Zahid Rahman wrote: > .exe and DLLs (C,C++) have unknown internals (AFAIK DLLs can't be > decompiled). They're just code like anything else. And I don’t quite understand why there’s a distinction made here between reverse engineering an exe and a jar. I also chose Java because one can decompile classes , so any unknown > behaviour can be identified , Decompiling a jar is a small part of understanding its behavior in a system. A variety of mechanisms can alter library behavior during load and run time, plus the additional layer of abstraction from the JVM, plus some indeterminism depending on what GC and JRE decisions were made. In any case, unless you’re running on bare metal and assuming we’re ignoring cpu unknowns, we’re working in black box environments most of the time anyway—it’s just that most of the time we have the luxury of being able to ignore this. -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: OFF TOPIC: Introduction
On Tue, Dec 3, 2019 at 1:43 PM Zahid Rahman wrote: > What more can I say (: > Nothing--I think most everybody already knows that sometimes people do dumb things. d..
Re: OFF TOPIC: Introduction
On Tue, Dec 3, 2019 at 1:14 PM Zahid Rahman wrote: > What developers do isn't testing. > > [Bottom up programmer]. > This is demonstrably incorrect (trivially). It doesn't even make sense. AFAIC the burden of proof is on you, because developers do valid testing all the time. (And yes, some developers do some invalid testing some of the time.) I would challenge the supposition that we didn't test the pacemaker (or the fuel pump, although it wasn't as extreme, I'd say) within inches of its life, or the payment processing code (ACH stuff pretty much has to work), or any number of other projects. You appear to confuse different layers of testing, all of which are required (to varying degrees), with "testing", which is not a single thing. You're making a lot of assumptions based on your specific experience--which is fine, but it might be a good idea to take a small step back and recognize that your experience is not everyone's experience, what you're calling "testing" is in fact a field unto itself, and that maybe some additional experience might broaden your horizons. Good luck! d.
Re: OFF TOPIC: Introduction
On Tue, Dec 3, 2019 at 12:57 PM Zahid Rahman wrote: > We have a difference in opinion. You think you can't do enough testing. > I think there are some tests which counts for nothing. It is just testing > for testing sake. > No, I think there are tests that count for nothing, or test the wrong things, or don't test enough. That doesn't mean developers can't, or shouldn't, test. > [lots of other words] > Neat. d.
Re: OFF TOPIC: Introduction
On Tue, Dec 3, 2019 at 9:43 AM Zahid Rahman wrote: > If the developer tests his own code then there is a danger that he will > pass his misunderstanding of specification. > Correct. > Anyway in the safety critical environments the one who wrote the code does > not do the testing. > That's simply not the case across the board: there are multiple tiers of testing, and the onus is on the developer to do the initial testing. For example, when I was writing pacemakers--you better believe we tested the *crap* out of our code. Were we the *only* ones testing? Of course not; there were *many* levels of testing--but it *started* with us. > Tests are also done on hardware electrical rigs , simulating feed to > sensors. > Yep. And when I was writing fuel pump controllers not only did *I* have a set of tests, so did the hardware guys, so did the combination of HW/SW guys, so did the verification group, so did whoever gave us our certification, etc. It's not entirely clear to me what your point is, or if you're just arguing for the sake of arguing. Testing is, by necessity, the responsibility of everyone involved in the project, which includes the developer. d.
Re: OFF TOPIC: Introduction
On Tue, Dec 3, 2019 at 07:04 Zahid Rahman wrote: > test from specification not from code and testing MUST not > to be done by the person who wrote the code as suggested in a book I read > recently. Testing is multi-tiered just like the rest of large applications. Developers are in a unique position to do more in-depth testing than pure black-box testing would allow, including testing interop layers invisible to, say, QA at the front-end. There's a reason there are different names for different types of testing, and ideally, there are multiple layers of testing, performed across dev groups. Dave -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: WEIRD Constraint
I’m not sure what you mean. The dtd defines the ordering of xml elements in the config file. On Fri, Nov 15, 2019 at 14:12 zahis Rahman wrote: > Hi, > > The constraint I have labelled as “WEIRD CONSTRAINT” in the file > struts.xml below , > is that by design ? > > > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" > "http://struts.apache.org/dtds/struts-2.5.dtd";> > > > > > > > > > > > > /WEB-INF/jsp/error.jsp > > > > result="error"/> > > > > > > > HelloWorld > /example > > > > > > > > > > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: How to auto submit a jsp page after loading
On Thu, Oct 3, 2019 at 7:57 AM albert kao wrote: > This is desired for saving time when testing a web application. > Two points: * You'd no longer be testing the page. * You'd introduce *additional* functionality not present on the real page. Dave
Re: Migrating the Migration Guide
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org On Fri, Sep 27, 2019 at 9:17 AM ssmtpmailtesting ssmtpmailtesting < ssmtpmailtest...@gmail.com> wrote: > Please unsubscribe me from your mailing list. > > On Fri, Sep 20, 2019 at 12:50 PM Lukasz Lenart > wrote: > > > > Hi, > > > > The very last thing to migrate from Confluence to Markdown is our > > Migration Guide [1]. The only problem with having all in .md files and > > exposed via Git is that with Confluence we can restrict access to > > particular pages which is useful when we are preparing a security > > release. We can prepare the Version Notes without exposing any > > information to public, clarify things and so on. Having all in .md > > files won't be possible to do so. > > > > I wonder what can of flow would help us still use Confluence in such > > cases but keep the final docs in .md files, do you have some ideas? > > > > [1] https://cwiki.apache.org/confluence/display/WW/Migration+Guide > > > > > > 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 > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Upgrade from struts 2.3.37 to struts 2.5.20 issue.
There's a lot of missing information here, like the stack trace, the precise jar versions, your web and struts configs. On Tue, May 21, 2019 at 11:59 AM HuiFung@GMail wrote: > > hi there, > > > encounter issue when .ear file deployed in Weblogic 12.1.3.0.0 server. > > Error: Struts Dispatcher cannot be found... > > Upgraded the necessary jar files such as struts core, json and updates the > necessary properties file. but still encounter the struts dispatcher error. > > any idea what did I missed out? project is using ANT build and also is a > non-maven project. > > Regards, > > Hui Fung > Sent from G-Mail -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton li: dave-newton gh: davelnewton so: Dave Newton bl[0]: Bucky Bits bl[1]: Maker's End Blog sk: davelnewton_skype - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: getText with multiple parameters not populating correctly
Single-quotes must be escaped using double single-quotes; single quotes are used to allow non-resource strings. IIRC this is just how `MessageFormat` works. On Tue, Apr 2, 2019 at 10:40 AM Affan Osman wrote: > I think found the issue. It fails because of '. > > test.key={0}is{1}and{2}. > test.key2={0}'sis{1}and{2}. > > String key1= getText("test.key", newString[] {"aa11", "bb22", "cc33"}); > String key2= getText("test.key2", newString[] {"aa11", "bb22", "cc33"}); > > Key 1: aa11 is bb22 and cc33. > Key 2: aa11s is {1} and {2}. > > Is there anyway I can escape the character ' ? > > I don't think there is an issue with struts.xml, but here it is. > > > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" > "struts.apache.org/dtds/struts-2.5.dtd"> > > > value="ApplicationResources" /> > > value="true" /> > > extends="struts-default"> > > > > name="sessiontimeout">/sessiontimeout.jsp > name="error">/error.jsp > > > class="com.test.SearchAction" method="execute"> > name="success">/searchresults.jsp > > > > > > > > Thanks! > On Apr 2, 2019, 5:11 AM -0400, Lukasz Lenart , wrote: > > wt., 2 kwi 2019 o 04:46 Affan Osman napisał(a): > > > > > > I am using version 2.5.17. I am not using any custom text provider. > > > > > > I tried the same example as in the unit test but still only first > parameter gets populated. The second and third show as [1] and [2]. > > > > Could you share your struts.xml? This is rather something with your > > config, I have tested the same in my app and everything looks good: > > > > System.out.println(getText("test.key", new String[] { "A", "B", "C" })); > > > > test.key={0} is {1} and {2} > > > > "A is B and C" > > > > > > 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 > > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Migrating from Struts 1.2 to recent Struts
On Tue, Mar 12, 2019 at 5:41 PM davidrobertwoos...@gmail.com < davidrobertwoos...@gmail.com> wrote: > The application uses 270 Tiles-based JSPs. It's a huge, complex user > interface. How would you approach that? > Honestly, I wouldn't--unless there's an overwhelmingly good reason to essentially re-write the app, I wouldn't. If I *had* to, I would run two apps in parallel and convert things over one page at a time. My own preference would be to keep most of the business logic "as-is" and expose an API and convert the front end to a client-side framework (e.g., React/Vue). Dave
Re: Migrating from Struts 1.2 to recent Struts
Kind of depends what you're migrating it to. Roughly speaking you copy your business logic as-is and rewrite the web interface side of things. On Mon, Mar 11, 2019 at 2:16 PM davidrobertwoos...@gmail.com < davidrobertwoos...@gmail.com> wrote: > I'm forced to migrate a sizable application from Struts 1.2 to something > recent, and I don't know where to start. I understand that Struts 1.2 is > ~ancient~ history and no longer supported in any way, shape or form. But it > must be done. > > How can I accomplish such a migration? > > Thanks, > > David > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Mapping struts.xml actions to their full URL
The "servlet prefix" (whatever that is) is dependent on the deployment, not the app. On Mon, Mar 11, 2019 at 8:22 AM shonlevin1...@gmail.com < shonlevin1...@gmail.com> wrote: > As part of security tests we are doing, I have to map the actions appears > in struts.xml to their full URLs. I know to connect between the namespace > and the action name of every action from struts.xml, but how can I know > which servlet refers to each action? > > For example, this is my struts.xml file- > > > > bar2.jsp > > > > I know that the URL contains the path "/barspace/bar.action" but how can I > build the rest of the URL (with the servlet prefix as well)? > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: Help with syntax struts 2
What kind of help? On Fri, Mar 8, 2019 at 7:05 PM Deborah White wrote: > Can someone help me with the syntax on this? > > > > CONFIDENTIALITY NOTICE: This communication with its contents may contain > confidential and/or legally privileged information. It is solely for the > use of the intended recipient(s). Unauthorized interception, review, use or > disclosure is prohibited and may violate applicable laws including the > Electronic Communications Privacy Act. If you are not the intended > recipient, please contact the sender and destroy all copies of the > communication. > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
Re: [struts-user] XML based configuration
Hi Lukasz, Here's a summary of how Roller uses Struts and Tiles: Roller uses the StrutsPrepareAndExecute filter and maps it to all requests ending with “.rol” https://github.com/apache/roller/blob/master/app/src/main/webapp/WEB-INF/web.xml Roller’s actions are defined in struts.xml and return results of type “tiles” https://github.com/apache/roller/blob/master/app/src/main/resources/struts.xml Roller’s JSP pages are kept under /WEB-INF/jsps to prevent direct access to them. You can see that in the tiles.xml file https://github.com/apache/roller/blob/master/app/src/main/webapp/WEB-INF/tiles.xml Hope that is helpful. What else can I tell you about Roller and it's use of Struts & Tiles? Best regards, Dave On Fri, Feb 1, 2019 at 2:41 AM Lukasz Lenart wrote: > pt., 1 lut 2019 o 00:38 Dave napisał(a): > > Thanks for helping to track down this problem, Jason; Roller (and Struts > in > > general) should work at any path. Maybe this error is occuring because > > Roller is using Struts/Tiles in a non-best practices way? > > Could you describe how do you use Struts/Tiles in Roller? Maybe I > would be able to help :) > > > 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: [struts-user] XML based configuration
Thanks for helping to track down this problem, Jason; Roller (and Struts in general) should work at any path. Maybe this error is occuring because Roller is using Struts/Tiles in a non-best practices way? Dave On Thu, Jan 31, 2019 at 12:59 AM Jason Pyeron wrote: > > -Original Message- > > From: Jason Pyeron > > Sent: Wednesday, January 30, 2019 9:53 PM > > > -Original Message- > > > From: Jason Pyeron > > > Sent: Wednesday, January 30, 2019 9:11 PM > > > > > > It has been 10+ years since I used the XML configuration, so please > bear > > > with me. > > > > > > I am attempting to deploy Apache Roller under a sub context > > > (public#roller.war) so the url would be > > > http://127.0.0.1:8080/public/roller/roller-ui/login.rol . > > > > > > When I do so, I get an exception cannot find definition named .Login > > > > > So I think I have narrowed it down. > > > file:/C:/programs.x64/apache-software-foundation/apache-tomcat-7.0.82/webapps/public#roller/WEB-INF/tiles.xml > > But when this URL is stored in the > org.apache.tiles.request.ApplicationResource, specifically > org.apache.struts2.tiles.StrutsApplicationResource it is splitting the URL > in two: > > pathPrefix="/C:/programs.x64/apache-software-foundation/apache-tomcat-7.0" > > and > > suffix=".82/webapps/public" > > > If I hack it with the debugger to : > > > > pathPrefix="/C:/programs.x64/apache-software-foundation/apache-tomcat-7.0.82/webapps/public#roller/WEB-INF/tiles.xml" > > and > > suffix="" > > It works until the next restart! > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: [EXTERNAL] Re: Struts 2.5.x support above Java 8
Determining support is fraught, because people run on all sorts of JVMs, including EOLed versions :/ On Sun, Nov 11, 2018 at 10:01 AM David Dillard wrote: > > We do plan support JDK 9 and JDK 11 as from Struts 2.6 (in development), > maybe we will be able to port those changes into 2.5.x branch but we will > see. > > Really no point in supporting JDK 9 or 10 as they are now EOL. JDK 11 > support would be great. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Bucky Bits <http://buckybits.blogspot.com/> sk: davelnewton_skype
Re: Is struts better than spring framework?
Yes? No? Apples and oranges. Struts 2 is an MVC web framework. Spring MVC is the Spring equivalent. Spring is an all-encompassing framework for many things, one small part of that is the web. In any case, "better" is subjective. Dave On Fri, Nov 9, 2018 at 12:47 PM ssmtpmailtesting ssmtpmailtesting < ssmtpmailtest...@gmail.com> wrote: > Is struts better than spring framework? > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Bucky Bits <http://buckybits.blogspot.com/> sk: davelnewton_skype
Re: A book of Struts
I'd probably keep Spring in the first book since basic integration is pretty simple, and a lot of people use the two together. I think the only potentially-missing thing (and I say potentially because it might belong in either basic or the advanced or both) is testing. Validation is another thing that people ask a lot of questions about; not sure if it's in Book 1 or the nascent book 2 :) Dave On Thu, Oct 25, 2018 at 7:18 AM albert kao wrote: > I think two books are in order: > First, S2 Basics / introduction : one single app development example. > Later, S2 Advanced: advanced topics, deep customization, Internals, Spring > integration, Javascript such as JQuery, etc. > > I suggest > - moving Spring integration to the S2 Advanced book. > - adding IDE (Eclipse, ...) configuration to chapter 3. > > Therefore https://github.com/lukaszlenart/struts-mini-book becomes: > 1_introduction.txt > 2_generate-project-with-maven.txt > 3_basic-configuration.txt (with IDE (Eclipse, ...)) > 4_internal-di.txt > 5_integration-with-tiles.txt > 6_login-and-authenticate.txt > 7_final-word.txt > > > On Thu, Oct 25, 2018 at 2:59 AM Lukasz Lenart > wrote: > > > pt., 19 paź 2018 o 14:06 Dave Newton napisał(a): > > > > > > No recommendations; I'm forced to use Word right now for a Kindle book > > I'm > > > working on and I hate it (same when I did the S2 book) so don't do > > > that--makes code stuff needlessly complicated. > > > > > > There are many plain-ish-text systems out there--my personal preference > > > would be one of those, in a repo, and convert to final format. This > also > > > allows you to write in code snippets you can pull from the same or > > > different repos, which is very convenient. I haven't found a great way > to > > > do code fallouts though, like PragProg or Manning, in a trivial way. > > > > Thanks a lot Dave! Yeah, plain text is my favourite format :D > > > > I made a first step and the basic book setup is ready, you can preview > > it here [1] and the source code is available here [2] > > > > [1] https://leanpub.com/struts-mini-book > > [2] https://github.com/lukaszlenart/struts-mini-book > > > > > > 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 > > > > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Bucky Bits <http://buckybits.blogspot.com/> sk: davelnewton_skype
Re: A book of Struts
No recommendations; I'm forced to use Word right now for a Kindle book I'm working on and I hate it (same when I did the S2 book) so don't do that--makes code stuff needlessly complicated. There are many plain-ish-text systems out there--my personal preference would be one of those, in a repo, and convert to final format. This also allows you to write in code snippets you can pull from the same or different repos, which is very convenient. I haven't found a great way to do code fallouts though, like PragProg or Manning, in a trivial way. On Fri, Oct 19, 2018 at 3:05 AM Lukasz Lenart wrote: > Thanks a lot for such a huge feedback, I am impressed and thankful :) > > After rethinking all your comments I think I will strat with a > mini-book. I never wrote a book so starting with a small thing should > be easier and achievable as I would like to finish the book till the > end of this year. Thanks Dave for you insights on this :) > > The idea is similar to long ago published book on InfoQ [1]. I would > like to focus on the following topics: > - creating an app using Maven Archetypes [2] with an explanation of > each part, how to use it, when to use it, etc. > - basic configuration: struts.xml and including other xml files, > properties, bundles > - internal DI, show some examples and how to develop and register your own > beans > - integration with Spring > - integration with Tiles > - basic login and auth implementation > > wdyt? > > Dave > do you have any recommendation what to use to write and publish the > book? I thought about using leanpub.com > > [1] https://www.infoq.com/minibooks/starting-struts2 > [2] https://struts.apache.org/maven-archetypes/ > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > czw., 18 paź 2018 o 15:44 Prasanth napisał(a): > > > > 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, Lukasz Lenart > wrote: > > >> > > >> Hi everyone, > > >> > > >> I would like to (finally ;-) write a book about the latest version of > > >> the Apache Struts, probably targeting Struts 2.6. I wonder what kind > > >> of book this should be: > > >> - an introduction from zero to a full blown app > > >> - a 101 good practices/examples > > >> - any other idea > > >> > > >> I hope you will give me some positive feedback to start working on > this task :) > > >> > > >> > > >> Kind 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 > > >> > > > ----- > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Bucky Bits <http://buckybits.blogspot.com/> sk: davelnewton_skype
Re: A book of Struts
On Wed, Oct 17, 2018 at 11:57 AM Arjuna Bandara wrote: > - ajax with jQuery > I'd be a little cautious going down that rabbit hole as I learned in my previous S2 book. I think covering the basics of Ajax from the S2 side is good; I don't know how far down a jQuery-specific path I'd go. Although it might be worth covering the S2 jQuery plugin--I'm not sure; I'd have to think about that.
Re: A book of Struts
I have a long-standing, and way overdue, book about S2 internals :( I think two books are in order: * S2 Basics: (modern) app development * S2 Internals: advanced topics, deep customization, etc. Misc thoughts: * 2.0 → 2.3 → 2.5 → 2.6 migrations are appendices: focus book on "current" version * Interacting with current web app tech (e.g., React, GraphQL, JWT, ???) * Best practices (which code goes where) * How is S2 still relevant * "Boundary crossings": DB, external APIs, etc. * Scaling Chances are I could go on. A book covering all of S2 *and* internals would be (a) too big, (b) too much work. Split it up: save yourself. I can come up with more stuff as well, or if you'd like to work together, that's fine too. Dave On Wed, Oct 17, 2018 at 3:38 AM Lukasz Lenart wrote: > Hi everyone, > > I would like to (finally ;-) write a book about the latest version of > the Apache Struts, probably targeting Struts 2.6. I wonder what kind > of book this should be: > - an introduction from zero to a full blown app > - a 101 good practices/examples > - any other idea > > I hope you will give me some positive feedback to start working on this > task :) > > > Kind 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 > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl: Bucky Bits <http://buckybits.blogspot.com/> sk: davelnewton_skype
Re: http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found
That means you're hitting a JSP page with S2 tags without having run through an S2 request process, e.g., hitting a JSP page directly. On Sat, Jun 30, 2018 at 9:14 AM ssmtpmailtesting ssmtpmailtesting < ssmtpmailtest...@gmail.com> wrote: > struts.xml => > > > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" > "http://struts.apache.org/dtds/struts-2.5.dtd";> > > > > > > /index.jsp > > > method="execute"> > /HelloWorld.jsp > > > > > > web.xml > > > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" > "http://struts.apache.org/dtds/struts-2.5.dtd";> > > > > > > /index.jsp > > > method="execute"> > /HelloWorld.jsp > > > > > Still I get error for http://mybox:8080/struts/ > > HTTP Status 500 - Internal Server Error > > > > type Exception report > > messageInternal Server Error > > descriptionThe server encountered an internal error that prevented it > from fulfilling this request. > > exception > > org.apache.jasper.JasperException: The Struts dispatcher cannot be > found. This is usually caused by using Struts tags without the > associated filter. Struts tags are only usable when the request has > passed through its servlet filter, which initializes the Struts > dispatcher needed for this tag. - [unknown location] > > root cause > > The Struts dispatcher cannot be found. This is usually caused by > using Struts tags without the associated filter. Struts tags are only > usable when the request has passed through its servlet filter, which > > > > and same error for http://mybox:8080/struts/hello.action > > On Sat, Jun 30, 2018 at 6:43 PM, Yasser Zamani > wrote: > > > > > > On 6/30/2018 4:23 PM, ssmtpmailtesting ssmtpmailtesting wrote: > >> web.xml => > >> > >> >> "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > >> "http://java.sun.com/dtd/web-app_2_3.dtd"; > > >> > >> > >> Archetype Created Web Application > >> > >> struts2 > >> org.apache.struts2.dispatcher.FilterDispatcher > >> > > > > The maven pom.xml is using Struts 2.5.16 but web.xml is using Struts > > 2.3.x either DTD and filter. The FilterDispatcher is used in the early > > Struts2 development, and it’s deprecated since Struts 2.1.3. it’s always > > recommended to upgrade the new filter class – > StrutsPrepareAndExecuteFilter. > > > > Regards. > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Ajax post url
How do you expect it to work? What happens differently? On Wed, Jun 13, 2018 at 10:34 AM Arjuna Bandara wrote: > I want to send a post request with few attributes as a subsidiary to form > submission. > Js > > https://pastebin.com/embed_iframe/UEvTiBFz"; > style="border:none;width:100%"> > > Action class method > > https://pastebin.com/embed_iframe/CPPWRTSr"; > style="border:none;width:100%"> > > > Struts XML > > https://pastebin.com/embed_iframe/HG71mjbr"; > style="border:none;width:100%"> > > > But struts url does not work as expected. Guys please help me to sort this > out, since I am new to struts 2. > > Regards > > Arjuna > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Confused about upgrading Apache Struts
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 <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Sr Dev Struts 2 Job Irving TX Area
Onsite or remote? On Mon, Apr 9, 2018 at 11:15 AM Paul Zepernick < paul.zepern...@healthsmart.com> wrote: > Looking for a Sr Struts 2 dev in the Irving TX area. Please follow the > link below for details of the job description. > > > https://workforcenow.adp.com/mascsr/default/mdf/recruitment/recruitment.html?cid=bec92904-6e43-44f3-a8dd-2909905e90f8&ccId=19000101_01&jobId=222415&lang=en_US&source=CC4 > > > Paul R. Zepernick > Sr. Programmer Analyst > HealthSmart Benefit Solutions > paul.zepern...@healthsmart.com<mailto:paul.zepern...@healthsmart.com> > > > > > > > Disclaimer: This communication and any files transmitted with it may > contain information that is privileged, confidential and/or exempt from > disclosure under applicable law. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution, or use of > the information contained herein (including any reliance thereon) is > strictly prohibited. If you received this communication in error, please > immediately contact the sender and destroy the material in its entirety, > whether in electronic or hard copy format. Thank you. > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Dynamically generating multiple sets of radio buttons
That was it! It's now putting key-value pairs in the map obtained by getVariation and they appear when I get to the execute method. 08:19:35.682 ERROR CartAction - getVariation was called 08:19:35.698 ERROR CartAction - getVariation was called 08:19:36.086 DEBUG CartAction - cart action execute 08:19:36.086 ERROR CartAction - 13000=5600 08:19:36.086 ERROR CartAction - 2000=500 Thank you! dave On Sat, Mar 3, 2018 at 1:17 AM, Yasser Zamani wrote: > > > 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 key = entry.getKey(); > > String value = entry.getValue(); > > > > logger.error(key + "=" + value); > > } > > > > > > } > > Is my method signature incorrect? Thank you! > > I guess Struts wont call setVariation for e.g. variation[2000]=HOTTER. > Instead I guess it calls getVariation().put(2000, "HOTTER"); maybe you > should use Map for defining variation instead with java > simple getter and setter. > > Regards. > >
Re: Dynamically generating multiple sets of radio buttons
I've distilled my issue down a bit. Now I can't get my indexed setters to be called with the values from the page. This is in my HTML created with the radio tag: HOT HOTTER Small Medium Large My setter in the destination action is: public void setVariation(HashMap variationItem){ logger.error("setVariation was called with variations"); for (Map.Entry entry : variationItem.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); logger.error(key + "=" + value); } } It gets called but there is no data in the hashmap. I also turned up the debugging in log4j and see the following: 07:05:39.556 DEBUG com.opensymphony.xwork2.ognl.SecurityMemberAccess - Checking access for [target: com.subecon.actions.commerce.CartAction@56dda392, member: public void com.subecon.actions.commerce.CartAction.setVariation(java.util.HashMap), property: variation] 07:05:39.556 DEBUG com.opensymphony.xwork2.ognl.SecurityMemberAccess - Checking access for [target: com.subecon.actions.commerce.CartAction@56dda392, member: public void com.subecon.actions.commerce.CartAction.setVariation(java.util.HashMap), property: variation] 07:05:39.557 DEBUG com.opensymphony.xwork2.ognl.SecurityMemberAccess - Checking access for [target: com.subecon.actions.commerce.CartAction@56dda392, member: public void com.subecon.actions.commerce.CartAction.setVariation(java.util.HashMap), property: variation] 07:05:39.557 DEBUG com.opensymphony.xwork2.ognl.SecurityMemberAccess - Checking access for [target: com.subecon.actions.commerce.CartAction@56dda392, member: public void com.subecon.actions.commerce.CartAction.setVariation(java.util.HashMap), property: variation] 07:05:39.557 DEBUG com.opensymphony.xwork2.ognl.SecurityMemberAccess - Checking access for [target: com.subecon.actions.commerce.CartAction@56dda392, member: public void com.subecon.actions.commerce.CartAction.setVariation(java.util.HashMap), property: variation] 07:05:39.557 DEBUG com.opensymphony.xwork2.ognl.SecurityMemberAccess - Checking access for [target: com.subecon.actions.commerce.CartAction@56dda392, member: public void com.subecon.actions.commerce.CartAction.setVariation(java.util.HashMap), property: variation] 07:05:39.557 ERROR com.subecon.actions.commerce.CartAction - setVariation was called with variations 07:05:39.557 DEBUG com.opensymphony.xwork2.conversion.impl.XWorkConverter - Retrieving convert for class [class com.subecon.actions.commerce.CartAction] and property [variation.null] 07:05:39.557 DEBUG com.opensymphony.xwork2.conversion.impl.XWorkConverter - Retrieving convert for class [class com.subecon.actions.commerce.CartAction] and property [variation.null] Is my method signature incorrect? Thank you! dave On Sun, Feb 25, 2018 at 8:57 AM, Dave Newton wrote: > It’s not entirely clear to me what you’re asking. > > `getItemList` will return whatever it returns—if the logic for what should > return lies in the view layer then it’s an architectural problem. > > If you need to return two lists then you should have two list getters. If > the view layer *presentation* of the list varies by list content then the > list should be presented in a structure that represents that, e.g., > > Class ViewList { > String representation; // e.g., “radio”, “dropdown”, etc. > List items; // The things to show > } > > If it depends on actions *taken* in the view layer, e.g., something > JavaScript-y, then all this is out the window and we’d need more > information. > > Dave > > On Sat, Feb 24, 2018 at 5:00 PM Dave Weis wrote: > > > Hello > > > > I am trying to make multiple sets of radio buttons with independent lists > > of valid options. The options are all generated dynamically. > > > > I'm having trouble figuring out how to declare the item list provider in > my > > java code. I have it working fine for a single item. With the sample > below > > I get the same list for both my radio buttons and my dropdown but I need > to > > be able to modify the list returned based on which line of input I'm on. > > > > Thank you > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > we have a variation > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > public ArrayList getItemList() { > > > > logger.debug("get item list"); > > ArrayList retval = new ArrayList(); > > retval.add("the first option"); > > retval.add("the second option"); > > return retval; > > } > > > -- > e: davelnew...@gmail.com > m: 908-380-8699 > s: davelnewton_skype > t: @dave_newton <https://twitter.com/dave_newton> > b: Bucky Bits <http://buckybits.blogspot.com/> > g: davelnewton <https://github.com/davelnewton> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> >
Re: Dynamically generating multiple sets of radio buttons
I'm trying to make a form that can contain an arbitrary number of attribute choices. Think of a tshirt with color and size. I have a Product that contains Variations (size, color) that contain VariationItems (blue, XL). The variation can be either a dropdown or a radio button set. we have a variation On Sun, Feb 25, 2018 at 8:57 AM, Dave Newton wrote: > It’s not entirely clear to me what you’re asking. > > `getItemList` will return whatever it returns—if the logic for what should > return lies in the view layer then it’s an architectural problem. > > If you need to return two lists then you should have two list getters. If > the view layer *presentation* of the list varies by list content then the > list should be presented in a structure that represents that, e.g., > > Class ViewList { > String representation; // e.g., “radio”, “dropdown”, etc. > List items; // The things to show > } > > If it depends on actions *taken* in the view layer, e.g., something > JavaScript-y, then all this is out the window and we’d need more > information. > > Dave > > On Sat, Feb 24, 2018 at 5:00 PM Dave Weis wrote: > > > Hello > > > > I am trying to make multiple sets of radio buttons with independent lists > > of valid options. The options are all generated dynamically. > > > > I'm having trouble figuring out how to declare the item list provider in > my > > java code. I have it working fine for a single item. With the sample > below > > I get the same list for both my radio buttons and my dropdown but I need > to > > be able to modify the list returned based on which line of input I'm on. > > > > Thank you > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > we have a variation > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > public ArrayList getItemList() { > > > > logger.debug("get item list"); > > ArrayList retval = new ArrayList(); > > retval.add("the first option"); > > retval.add("the second option"); > > return retval; > > } > > > -- > e: davelnew...@gmail.com > m: 908-380-8699 > s: davelnewton_skype > t: @dave_newton <https://twitter.com/dave_newton> > b: Bucky Bits <http://buckybits.blogspot.com/> > g: davelnewton <https://github.com/davelnewton> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> >
Re: Dynamically generating multiple sets of radio buttons
It’s not entirely clear to me what you’re asking. `getItemList` will return whatever it returns—if the logic for what should return lies in the view layer then it’s an architectural problem. If you need to return two lists then you should have two list getters. If the view layer *presentation* of the list varies by list content then the list should be presented in a structure that represents that, e.g., Class ViewList { String representation; // e.g., “radio”, “dropdown”, etc. List items; // The things to show } If it depends on actions *taken* in the view layer, e.g., something JavaScript-y, then all this is out the window and we’d need more information. Dave On Sat, Feb 24, 2018 at 5:00 PM Dave Weis wrote: > Hello > > I am trying to make multiple sets of radio buttons with independent lists > of valid options. The options are all generated dynamically. > > I'm having trouble figuring out how to declare the item list provider in my > java code. I have it working fine for a single item. With the sample below > I get the same list for both my radio buttons and my dropdown but I need to > be able to modify the list returned based on which line of input I'm on. > > Thank you > dave > > > > > > > > > > > > > we have a variation > > > > > > > > > > > > > > > > > > > > > > public ArrayList getItemList() { > > logger.debug("get item list"); > ArrayList retval = new ArrayList(); > retval.add("the first option"); > retval.add("the second option"); > return retval; > } > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Dynamically generating multiple sets of radio buttons
Hello I am trying to make multiple sets of radio buttons with independent lists of valid options. The options are all generated dynamically. I'm having trouble figuring out how to declare the item list provider in my java code. I have it working fine for a single item. With the sample below I get the same list for both my radio buttons and my dropdown but I need to be able to modify the list returned based on which line of input I'm on. Thank you dave we have a variation public ArrayList getItemList() { logger.debug("get item list"); ArrayList retval = new ArrayList(); retval.add("the first option"); retval.add("the second option"); return retval; }
Re: newFixedThreadPool in struts2
It's still accessible: public void sessionCreated(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session created"); session.setAttribute(KEY, new Clickstream()); } public void sessionDestroyed(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session destroyed"); } On Fri, Feb 9, 2018 at 3:02 PM, Emi wrote: > Hello Yasser, > >> You can write your own listener by implementing HttpSessionListener and >> call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] >> http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ >> > In HttpSessionListener, it seems that there are no session attributes > anymore. So, there is no way for me to do the following in the listener > class: > > fixPool = session.getAttribute('fixpool_name'); > fixPool.shutdown(); > > So, the only possible way is through springframework config, right? > > Thanks a lot. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: How to find location of an action
On Thu, Dec 28, 2017 at 1:55 AM, Lukasz Lenart wrote: > 2017-12-27 21:06 GMT+01:00 Dave Weis : > > Would it be a correct assumption that changing the property > > struts.convention.relative.result.types to add 'tiles' would let me use > my > > tiles definitions? There's no mention at all of tiles in the document at > > http://struts.apache.org/plugins/convention/ . > > I'm using a custom UnknownHandler [1] to resolve Tiles definitions > using namespace, action name and result name > That's a nice and elegant way to handle it, thank you! dave
Re: Action url
I'm doing something similar and extended ActionSupport to put helpers to access the user session and the site they went to in the first place. On Dec 27, 2017 2:51 PM, "Tamás Barta" wrote: > For example there is a web application which has a LoginAction action. On > one site it is needed to access it via /login, on the other site /user/log. > > It is just an example. The urls shouldn't be hard-coded in action > annotations as I don't want to clone the web application just to change > urls. > > 2017. dec. 27. 19:53 ezt írta ("Yasser Zamani" ): > > > > > > > On 12/27/2017 9:28 PM, Tamás Barta wrote: > > > I would like to use the same web app code > > > with different URLs (for different sites). > > > > Could you elaborate with an example, please? > > >
Re: How to find location of an action
On Wed, Dec 27, 2017 at 1:22 PM, Lukasz Lenart wrote: > 2017-12-27 18:12 GMT+01:00 Dave Weis : > > Which direction would you recommend? I'll probably have around 100 > actions > > on this project and 300 or so JSP pages. I am using tiles extensively > also. > > I would recommend using the Convention plugin for a fast development, > when prototyping things. Or if the number of actions is somehow lower > than 100. In your case, using xml files should be sufficient and a > safer choice. > > Would it be a correct assumption that changing the property struts.convention.relative.result.types to add 'tiles' would let me use my tiles definitions? There's no mention at all of tiles in the document at http://struts.apache.org/plugins/convention/ . I did find some posts that you (Lukasz) wrote but they are from 2012 and I would hope things have advanced since then :-) Thank you dave
Re: How to find location of an action
On Wed, Dec 27, 2017 at 11:43 AM, Yasser Zamani wrote: > On 12/27/2017 8:42 PM, Dave Weis wrote: > > It would make things substantially > > more convenient but I like the declarative method so there's no question > as > > to intention. > > If I understood your high level English well ;) you are worry about if > convention plugin ties your hand on results? No, you can explicitly > define your result when you need or wish via @Result annotation [1]. > Sorry ;-) The reason I like using struts.xml is that when someone sits down to my code base there's a single file to look at to see every action and result definition. I'm worried about what's fastest for development versus what's going to be easiest to understand for someone (or me) in a year when they try to figure out why auth.LogoutAction is getting called when there's nothing referencing it in the configuration files. dave
Re: How to find location of an action
On Wed, Dec 27, 2017 at 10:41 AM, Yasser Zamani wrote: > On 12/27/2017 7:52 PM, Dave Weis wrote: > > I do have the struts-convention plugin loaded and removing it fixed my > > problem!! > > > > Where was it trying to find the success forward? > > > > Thank you so much! > > Glad to hear this :) > > At [1] I saw it will look for `WEB-INF/content/logout.jsp` or > `WEB-INF/content/logout-success.jsp`. > I'm torn whether or not to use this. It would make things substantially more convenient but I like the declarative method so there's no question as to intention. Which direction would you recommend? I'll probably have around 100 actions on this project and 300 or so JSP pages. I am using tiles extensively also. dave
Re: How to find location of an action
On Wed, Dec 27, 2017 at 10:14 AM, Yasser Zamani wrote: > On 12/27/2017 7:01 PM, Dave Weis wrote: > > Where it gets odd is that if I change that action definition to the > > following and completely stop and start Tomcat from Eclipse I still get > an > > error: > > > > You can see there is no mention of LogoutAction in the struts.xml file > yet > > it's still being called. This is with a complete stop and restart of > Tomcat. > > Maybe you have struts-convention-plugin and it automatically maps > /auth/logout to LogoutAction. > I do have the struts-convention plugin loaded and removing it fixed my problem!! Where was it trying to find the success forward? Thank you so much!
How to find location of an action
I'm having an odd interaction/problem with Struts, eclipse, and Tomcat. I have this in my struts.xml file: /landing.jsp /landing.jsp /reload.jsp I can access /auth/logout2 correctly and can access /auth/reload correctly. The body of the execute method in both actions is nearly identical: public class LogoutAction extends ActionSupport { private static final Logger logger = LogManager.getLogger(LogoutAction.class); public String execute() throws Exception { logger.error("THIS IS THE LOGOUT ACTION"); logger.error("THE TEXT IS " + "success"); return SUCCESS; } public class ReloadAction extends ActionSupport { private static final Logger logger = LogManager.getLogger(ReloadAction.class); public String execute() throws Exception { logger.error("in reload action"); ConfigurationManager configMan=Dispatcher.getInstance().getConfigurationManager(); configMan.reload(); return SUCCESS; } } It just seems like something is sitting on the /auth/logout path but the only instances of the word logout in my struts.xml file is the snippet above. Where it gets odd is that if I change that action definition to the following and completely stop and start Tomcat from Eclipse I still get an error: /landing.jsp /landing.jsp Struts Problem Report Struts has detected an unhandled exception: *Messages*: - No result defined for action com.subecon.actions.auth.LogoutAction and result success -- Stacktraces *No result defined for action com.subecon.actions.auth.LogoutAction and result success* com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) rest omitted. You can see there is no mention of LogoutAction in the struts.xml file yet it's still being called. This is with a complete stop and restart of Tomcat. Then I change it to this: /reload.jsp /auth/reload calls LogoutAction correctly and I don't get a stack trace. In every case LogoutAction is actually being called shown by the logger messages showing up in the console. There seems to be something about the 'logout' being in the URL. There's no other webapps running on this instance of Tomcat - it's completely managed by Eclipse. Where do I start with this? I've stared and compared and cannot figure out where it's breaking. Thanks dave
Re: Unable to use 'categories' in an action name
Thank you so much for your help - I appreciate it. I ended up just renaming the action and corrected the other pages pointing to it. dave On Sun, Dec 10, 2017 at 11:56 PM, Yasser Zamani wrote: > > > On 12/10/2017 6:06 PM, Dave Weis wrote: > > Correct, I want 'categories' to be the correct action name. I made a > > duplicate with a different name but the same class and results and it > works > > fine. If I remove the first action I put in to test/reproduce this I > still > > get the same error. > > > > I have my struts.xml cut down to the below and I still can't get to > > /commerce/categories successfully but /commerce/knobhead works fine at > the > > same time. > > I locally tested exactly same configuration and both knobhead and > categories work here. > > If I were you, I would search all xml and java files for term > `categories`. Maybe an action, servlet, etc is defined with same name > somewhere via xml or annotation! > > I hope this helps, > Yasser. >
Re: Unable to use 'categories' in an action name
The productcategories vs categories was just to see if there was a collision in a different action definition. The full stack trace follows. The previous email contained my corrected struts.xml definition with only a couple actions. Thanks for looking at it dave Struts Problem Report Struts has detected an unhandled exception: *Messages*: - No result defined for action com.subecon.actions.commerce.CategoriesAction and result success -- Stacktraces *No result defined for action com.subecon.actions.commerce.CategoriesAction and result success* com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:52) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:199) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:69) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:115) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:88) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:246) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:99) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:139) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:157) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:174) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:123) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:171) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) com.opensymphony.xwork2
Re: Unable to use 'categories' in an action name
Correct, I want 'categories' to be the correct action name. I made a duplicate with a different name but the same class and results and it works fine. If I remove the first action I put in to test/reproduce this I still get the same error. I have my struts.xml cut down to the below and I still can't get to /commerce/categories successfully but /commerce/knobhead works fine at the same time. commerce.categories commerce.categories 2017-12-10 6:43 GMT-06:00 Yasser Zamani : > > > On 12/9/2017 9:12 PM, Dave Weis wrote: > > > But it's name has `product` as prefix here. >
Unable to use 'categories' in an action name
I hope this is something simple I've missed. I am unable to use the word 'categories' as an action name inside a package. Duplicating the action definition with a different name works fine. I've reproduced it as far as I can understand but there is something else going on. Relevant struts config and exception are below. There are action definitions between the non functional action and the package. >From this config I can go to /commerce/knobhead and see the correct page but /commerce/categories gives the exception. The word categories only exists in my struts.xml for these two actions Thanks dave commerce.categories commerce.categories ERROR Dispatcher Could not find action or result: /SUBECON/commerce/categories No result defined for action com.foo.actions.commerce.CategoriesAction and result success at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277) at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:253) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:52) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:199) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:69) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:115) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:88) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:246) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:99) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:139) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:157) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:174) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:123) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247) at org.apache.struts2.interceptor.ServletConf
Re: Problems making SEO friendly URLs
I was using the 'normal' method with forms and tiles. The problem ended up being that I was inheriting my namespaces from 'struts-default' instead of 'default' so tiles weren't activated in that namespace. The last couple webapps I wrote were on struts 1 so it's been an adjustment. I do enjoy not having to create forms constantly :-) Thanks for the help dave On Fri, Dec 8, 2017 at 12:58 AM, Lukasz Lenart wrote: > Hi Dave, > > Did you try to use RestfulActionMappers? > http://struts.apache.org/core-developers/restful-action-mapper.html > > > 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 > >
Problems making SEO friendly URLs
Hello I'm trying to set up an action to make attractive URLs but I'm not having success. Below is the struts.xml file and the error. Any help would be appreciated! Thanks dave Messages: There is no Action mapped for namespace [/commerce] and action name [dave/1/2] associated with context path [/SUBECON]. public.index commerce.index public.index commerce.index
Multiple Page Form
Hello All- I wanted to see what the current best practice was for a multiple web page form. I was used to Struts 1 and putting the form in the session but that doesn't seem to be available now. I have just been putting the values as hidden form fields but that doesn't seem quite correct. Thanks dave
Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book
Please create a GitHub repo with your code and I'll take a look. Note that the examples from the book were tested only on Tomcat, and a pretty long time ago. I'll need any server details you're using. Also note that S2 is fairly different now than when the book was written. On Sun, Nov 12, 2017 at 8:26 AM albert kao wrote: > struts2 version: 2.1.6 > > On Sat, Nov 11, 2017 at 9:47 PM, Dave Newton > wrote: > > > What version of Struts 2 are you attempting to use? > > > > On Sat, Nov 11, 2017 at 5:58 PM albert kao wrote: > > > > > I downloaded the source code of the book "Apache Struts 2 Web > Application > > > Development" by Dave Newton from the > > > https://www.packtpub.com/books/content/support. > > > > > > Chapter 2 had compile error with Apache Maven 3.5.0. > > > $ mvn -version > > > Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; > > > 2017-04-03T15:39:06-04:00) > > > Maven home: /home/alkao/maven/apache-maven-3.5.0 > > > Java version: 1.8.0_144, vendor: Oracle Corporation > > > Java home: /home/alkao/jdk/jdk1.8.0_144/jre > > > Default locale: en_CA, platform encoding: UTF-8 > > > OS name: "linux", version: "4.4.0-21-generic", arch: "i386", family: > > "unix" > > > > > > To fix it, I removed just the tag in pom.xml. > > > Then run mvn: > > > $ cd > > > /home/alkao/Struts2/Apache_Struts_2_Web_Application_ > > Development/ch02/sanity > > > $ mvn clean package > > > > > > Running wildfly-10.1.0.Final: > > > $ JBOSS_HOME/bin/standalone.sh > > > $ jboss-cli.sh --connect --command="deploy > > > > > > /home/alkao/Struts2/Apache_Struts_2_Web_Application_ > > Development/ch02/sanity/target/ch02-sanity-1.0.war > > > --force" > > > > > > Running these 3 http links resulted in the same error in the web > browser > > > below. > > > Please help. Thanks. > > > http://localhost:8080/ch02-sanity-1.0/index.html > > > http://localhost:8080/ch02-sanity-1.0/sanity.jsp > > > http://localhost:8080/ch02-sanity-1.0/sanity.action > > > > > > > > > > > > > > > Error processing request > > > Context Path: > > > /ch02-convention-1.0 > > > > > > Servlet Path: > > > /index.html > > > > > > Path Info: > > > null > > > > > > Query String: > > > null > > > > > > Stack Trace > > > java.lang.NullPointerException > > > > > > com.opensymphony.xwork2.util.FileManager$FileRevision. > > needsReloading(FileManager.java:209) > > > > > > com.opensymphony.xwork2.util.FileManager.fileNeedsReloading( > > FileManager.java:60) > > > > > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider. > > needsReload(XmlConfigurationProvider.java:325) > > > > > > org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload( > > StrutsXmlConfigurationProvider.java:168) > > > > > > com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload( > > ConfigurationManager.java:220) > > > > > > com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration( > > ConfigurationManager.java:61) > > > org.apache.struts2.dispatcher.Dispatcher.getContainer( > > Dispatcher.java:774) > > > > > > > org.apache.struts2.dispatcher.ng.InitOperations.initStaticContentLoader( > > InitOperations.java:77) > > > > > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter. > > init(StrutsPrepareAndExecuteFilter.java:49) > > > > > > io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed( > > LifecyleInterceptorInvocation.java:111) > > > > > > org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init( > > RunAsLifecycleInterceptor.java:84) > > > > > > io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed( > > LifecyleInterceptorInvocation.java:97) > > > io.undertow.servlet.core.ManagedFilter.createFilter( > > ManagedFilter.java:80) > > > io.undertow.servlet.core.ManagedFilter.getFilter(ManagedFilter.java:66) > > > io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) > > > > > > io.undertow.servlet.handlers.FilterHandler$FilterChainImpl. > > doFilter(FilterHandler.java:131) > > > > > > io.undertow.se
Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book
What version of Struts 2 are you attempting to use? On Sat, Nov 11, 2017 at 5:58 PM albert kao wrote: > I downloaded the source code of the book "Apache Struts 2 Web Application > Development" by Dave Newton from the > https://www.packtpub.com/books/content/support. > > Chapter 2 had compile error with Apache Maven 3.5.0. > $ mvn -version > Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; > 2017-04-03T15:39:06-04:00) > Maven home: /home/alkao/maven/apache-maven-3.5.0 > Java version: 1.8.0_144, vendor: Oracle Corporation > Java home: /home/alkao/jdk/jdk1.8.0_144/jre > Default locale: en_CA, platform encoding: UTF-8 > OS name: "linux", version: "4.4.0-21-generic", arch: "i386", family: "unix" > > To fix it, I removed just the tag in pom.xml. > Then run mvn: > $ cd > /home/alkao/Struts2/Apache_Struts_2_Web_Application_Development/ch02/sanity > $ mvn clean package > > Running wildfly-10.1.0.Final: > $ JBOSS_HOME/bin/standalone.sh > $ jboss-cli.sh --connect --command="deploy > > /home/alkao/Struts2/Apache_Struts_2_Web_Application_Development/ch02/sanity/target/ch02-sanity-1.0.war > --force" > > Running these 3 http links resulted in the same error in the web browser > below. > Please help. Thanks. > http://localhost:8080/ch02-sanity-1.0/index.html > http://localhost:8080/ch02-sanity-1.0/sanity.jsp > http://localhost:8080/ch02-sanity-1.0/sanity.action > > > > > Error processing request > Context Path: > /ch02-convention-1.0 > > Servlet Path: > /index.html > > Path Info: > null > > Query String: > null > > Stack Trace > java.lang.NullPointerException > > com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) > > com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60) > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325) > > org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168) > > com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220) > > com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) > org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774) > > org.apache.struts2.dispatcher.ng.InitOperations.initStaticContentLoader(InitOperations.java:77) > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:49) > > io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111) > > org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:84) > > io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:97) > io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80) > io.undertow.servlet.core.ManagedFilter.getFilter(ManagedFilter.java:66) > io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) > > io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) > > io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) > > io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) > > io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) > > org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) > > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > > io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) > > io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) > > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > > io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) > > io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) > > io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) > > io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) > > io.undertow.security.handlers.NotificationRe
Re: Odd results with get vs post for an action and form
On Sun, Oct 15, 2017 at 1:30 AM, Yasser Zamani wrote: > > 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 action to > execute it, but cannot find any and cries ;) > That did it, thank you! dave
Odd results with get vs post for an action and form
Hello I'm having an odd problem trying to make a simple form that submits to an action. 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. Thanks for any help dave --- ERROR Dispatcher Could not find action or result: /learnstruts2/dave Method create for action dave is not allowed! - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:206) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:74) at org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:53) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567) at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81) at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:143) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:500) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) - - package com.sjdjweis.learnstruts; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionSupport; /** * @author djweis * */ public class DaveAction extends ActionSupport { private static final long serialVersionUID = 1L; public String index() { return Action.SUCCESS; } public void setUserName(String userName) { } public String getUserName() { return "theusername"; } } /dave.jsp Struts Problem Report Struts has detected an unhandled exception: *Messages*: - Method create for action dave is not allowed! -- Stacktraces *Method create for action dave is not allowed! - [unknown location]* com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:206) com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:74) org.apache.struts2.rest.RestActionProxyFactory.createActionProxy(RestActionProxyFactory.java:53) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567) org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81) org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:143) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:500) org.apache.co
Re: Struts2 - Open page in same tab
On Thu, Aug 10, 2017 at 5:14 PM, Deborah White wrote: > I removed target attribute but when I click Next, it opens a new tab. It's tough to understand what's going on. You have a few JS functions that open new windows, but it's not clear to me when or why they'd be called. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 - Open page in same tab
Same window is the default. On Thu, Aug 10, 2017 at 4:18 PM Deborah White wrote: > If I want it to open in the same tab? > > -Original Message- > From: Lukasz Lenart [mailto:lukaszlen...@apache.org] > Sent: Thursday, August 10, 2017 1:16 PM > To: Struts Users Mailing List > Subject: Re: Struts2 - Open page in same tab > > 2017-08-10 22:10 GMT+02:00 Deborah White : > > ENCTYPE="multipart/form-data" action="" target="_self"> > > I would remove the "target" attribute > > > 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 > > > > CONFIDENTIALITY NOTICE: This communication with its contents may contain > confidential and/or legally privileged information. It is solely for the > use of the intended recipient(s). Unauthorized interception, review, use or > disclosure is prohibited and may violate applicable laws including the > Electronic Communications Privacy Act. If you are not the intended > recipient, please contact the sender and destroy all copies of the > communication. > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Download jar - All dependencies vs Essential dependencies
Thank you Lukasz. My app doesn't use any plugins, so I should be fine with the Essentials. On Tue, Apr 18, 2017 at 8:15 AM, Lukasz Lenart wrote: > 2017-04-18 14:08 GMT+02:00 Dave Evans : >> I'm sorry, I should have done a better job phrasing my question. >> >> There are two jars which I can download, struts-2.5.10.1-lib.zip and >> struts-2.5.10.1-min-lib.zip. What are the use cases for these two >> jars? I'd like to use the "Essential Dependencies" version, and would >> like to know what would require that someone use the "All >> Dependencies" version. > > the Essential Dependencies version covers only Struts2 Core (no > plugins), whereas the All Dependencies version contains all the JARs > which covers the Core and all the plugins. Using the latest doesn't > make sense tbh :) And there is Maven to handle dependencies' mess ;-) > > > 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 > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Download jar - All dependencies vs Essential dependencies
I'm sorry, I should have done a better job phrasing my question. There are two jars which I can download, struts-2.5.10.1-lib.zip and struts-2.5.10.1-min-lib.zip. What are the use cases for these two jars? I'd like to use the "Essential Dependencies" version, and would like to know what would require that someone use the "All Dependencies" version. Dave On Tue, Apr 18, 2017 at 1:28 AM, Lukasz Lenart wrote: > 2017-04-18 4:19 GMT+02:00 Dave Evans : >> Hello, >> >> I have a very minimal struts app I wrote some years ago. I want to >> upgrade it from 2.3 to 2.5. I'm wondering what requirements would >> allow the use of the essential dependencies jar. I am using only jstl >> tags, no struts tags. And my app is pretty simple. > > There are an essential dependencies to download, is that what are you > looking for? > http://struts.apache.org/download.cgi#struts-ga > > All the tags are included in the struts2-core.jar, there is a plan to > exclude them into plugins and have just pure core MVC engine. > > > 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 > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Download jar - All dependencies vs Essential dependencies
Hello, I have a very minimal struts app I wrote some years ago. I want to upgrade it from 2.3 to 2.5. I'm wondering what requirements would allow the use of the essential dependencies jar. I am using only jstl tags, no struts tags. And my app is pretty simple. Thanks, Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: issue with getting current date using date tag in latest struts 2.3.3X
I'm surprised that worked, since it's supposed to be the name of the date property you want to display. Maybe it was introspecting to see if it was an immediate date value, but that's deceptive and counter-intuitive. In any case, that's a large version jump. OGNL was updated multiple times. If I were guessing (which I am; sorry) I'd say it's related to the evaluation of parameter names in OGNL. Unrelated, but making this work correctly seems like a win. Dave On Fri, Mar 10, 2017 at 10:59 AM, Vishal Jhagadiawala < vish_...@yahoo.com.invalid> wrote: > Hi,I am having issue with following date tag, after upgrading to struts > 2.3.30 > > > it shows no value in the UI page. > Question: was there usage of OGNL expression changed in latest version of > struts2. eg. 2.3.30, the above usage works without issue in Struts2 2.2.1 > any help would be appreciated. > > Regards, > Vishal -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Struts2 JQuery plugin failed on Strut2 + Tiles + Hibernate project
On Mon, Feb 13, 2017 at 11:24 AM, THAN_HVFC wrote: > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter > - org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Very confusing documentation
ete data, > ...) > > and it decides which View element shall be executed. The action may store > > data returned by business logic to be accessed by View later. > > - interceptors are run again, in reverse order (it is a stack) to do > > optional post-processing > > - View is executed to generate response. > > > > There is always s2 code involved between these steps to do the actual > > invokation of interceptors, action, View. > > > > In my understanding the Controller is split up between interceptors and > > action while the Model is split up between action and business logic. > > > > > > Regards, > > Christoph > > > > > > > > > > > > On Mon, Sep 19, 2016 at 9:09 PM, Dave Newton > > > wrote: > > > > > > > On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton > > > > > wrote: > > > > > > > > > "... and they're more or less in the right order. ..." > > > > > > > > > > Not really. But thank you for the nice reply. The issue here is > > that my > > > > > understanding is no better with your explanation. > > > > > > > > > > > > > I think the disconnect is that you're viewing the S2 documentation > > hoping > > > > for an MVC tutorial, which this isn't. Entire books have been written > > about > > > > MVC. One part of "jargon" is serving as a common communication model. > > The > > > > description is presented as a description of S2, not MVC in general. > > > > > > > > It is curious that the introductory explanation for beginners is full > > > > > of specialized and undefined jargon. > > > > > > > > > > > > > The introductory explanation of S2 is just that; not a tutorial of > > MVC, for > > > > which there are better, and more extensive, tutorials. > > > > > > > > (As an aside, note there are multiple interpretations of what "MVC" > > > > actually *is*, as most web-based MVC frameworks, especially prior to > > fairly > > > > recently, are quite a bit different than when the pattern was first > > > > identified and implemented.) > > > > > > > > YMMV, but I'd rather pick specialized documentation that addresses > > specific > > > > concerns. > > > > > > > > Regarding the rewrite: it's adequate as far as it goes, but misses > > some > > > > fairly important points (e.g., control *is* forwarded back through > the > > > > controller). Think of it this way: the request is always "moving > > forward" > > > > through the process. But it moves "back through" the controller, > > because > > > > that's just how filters work. > > > > > > > > The view layer doesn't transmit the reply message to the user (nor is > > it > > > > necessarily HTML). The view layer creates the output of the request, > > > > whatever that happens to be. But it isn't the view layer's > > responsibility > > > > to get that representation back to the user. > > > > > > > > The "model" (an action in S2) essentially does a data transform > > between the > > > > request and what is required by the view layer. The view layer does a > > data > > > > transform between what is given to it and what is sent back to the > > client. > > > > (Noting that some of this may not be written by the app developer but > > can > > > > be hidden within the framework, e.g., automatic JSON transformation.) > > > > > > > > > > > > > There!!! See? No jargon. The jargon can be defined later, in the > > > > > tutorial. > > > > > > > > > > > > > I'd only reiterate that there are a large number of concepts involved > > in a > > > > back-end framework. IMO neither a primer nor a *framework* tutorial > > are the > > > > place to address those concepts directly. This is why links are > > provided > > > > that go in to much more detail. Other people, smarter than me, have > > spent a > > > > lot of energy explaining the details of the concepts that S2 > > implements. I, > > > > at least, would defer to their better grasp of both concept and > > language, > > > > and keep the S2 docs concise, and use jargon common to the field. > > Again, > > > > YMMV, and other S2 contributors may have different opinions--I'm > > speaking > > > > only for myself. > > > > > > > > d. > > > > > > > > This Email was scanned by Sophos Anti Virus > > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Very confusing documentation
On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton wrote: > "... and they're more or less in the right order. ..." > > Not really. But thank you for the nice reply. The issue here is that my > understanding is no better with your explanation. > I think the disconnect is that you're viewing the S2 documentation hoping for an MVC tutorial, which this isn't. Entire books have been written about MVC. One part of "jargon" is serving as a common communication model. The description is presented as a description of S2, not MVC in general. It is curious that the introductory explanation for beginners is full > of specialized and undefined jargon. > The introductory explanation of S2 is just that; not a tutorial of MVC, for which there are better, and more extensive, tutorials. (As an aside, note there are multiple interpretations of what "MVC" actually *is*, as most web-based MVC frameworks, especially prior to fairly recently, are quite a bit different than when the pattern was first identified and implemented.) YMMV, but I'd rather pick specialized documentation that addresses specific concerns. Regarding the rewrite: it's adequate as far as it goes, but misses some fairly important points (e.g., control *is* forwarded back through the controller). Think of it this way: the request is always "moving forward" through the process. But it moves "back through" the controller, because that's just how filters work. The view layer doesn't transmit the reply message to the user (nor is it necessarily HTML). The view layer creates the output of the request, whatever that happens to be. But it isn't the view layer's responsibility to get that representation back to the user. The "model" (an action in S2) essentially does a data transform between the request and what is required by the view layer. The view layer does a data transform between what is given to it and what is sent back to the client. (Noting that some of this may not be written by the app developer but can be hidden within the framework, e.g., automatic JSON transformation.) > There!!! See? No jargon. The jargon can be defined later, in the > tutorial. > I'd only reiterate that there are a large number of concepts involved in a back-end framework. IMO neither a primer nor a *framework* tutorial are the place to address those concepts directly. This is why links are provided that go in to much more detail. Other people, smarter than me, have spent a lot of energy explaining the details of the concepts that S2 implements. I, at least, would defer to their better grasp of both concept and language, and keep the S2 docs concise, and use jargon common to the field. Again, YMMV, and other S2 contributors may have different opinions--I'm speaking only for myself. d.
Re: Very confusing documentation
On Mon, Sep 19, 2016 at 4:09 PM, Joseph B Cotton wrote: > What is meant by "mediated", "Form a connected link between" > "tied" "Attached" > "adapter" "Connector between differing functionality" > ? (I am a native English > speaker, with years of programming experience including Java.) > Hm. > What is the difference between "represents" and "encapsulates"? These very > different terms are uses seemingly as synonyms. > See next. > "business logic and state" - again "logic" and "state" are very different > concepts. Used here as synonyms. > No, they're used as intended: either business logic *or* state *and, since we use "or", possible both) are represented (and encapsulated) by a model. (Noting that neither is actually mandatory in the handler, but there is *a* model represented by an action. It may or may not be the "final" model in a modeling chain.) "Forwarded back" - oxymoron. > Vaguely, especially if pedantry is present. > "Loose coupling" - oxymoron. > Most certainly not; "loosely coupled" is a ubiquitous term in software engineering. And, last but not least, "make applications significantly easier" - in the > category of "to boldly go" i.e. split infinitive. > Ah, the "split infinitive". If this were written in Latin, this would be a much livelier discussion. It's English, though, and even the heavily-prescriptive Elements of Style does not say not to split them. So if you are (or were) an English teacher, holding the split infinitive up as something that's "wrong" wouldn't hold water. It holds less water since this isn't an English class. He knows what he wants to say, but what he says is not what he intends, > apparently. > I'd disagree. There might be minor tweaks (when isn't there?) but the words used have fairly well-known meanings in both the technical and English-speaking community, and they're more or less in the right order. Dave -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Security Vulnerability for Struts 1.3.10 in Struts 2.x
It's only "present" if you're using the Struts 1 plugin. Are you? On Thu, Apr 28, 2016 at 6:34 PM, Anu Krishna Rajamohan wrote: > Hi, > > As Apache Struts 1.x is pretty old and it suffers from many security > vulnerabilities, I decided to use a recent version of Apache Struts 2.x > (Struts 2.3.24.1). However, I find that struts-core-1.3.10 jar is present > in struts 2.x. Can you please let me know if the presence of this jar makes > Struts 2.x vulnerable to security issues such as CVE-2012-1007 > <https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-1007>. > > Thanks and Best Regards, > Anu > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Data Transfer Between Android and MySQL
(Slightly more-complete answers.) On Wed, Mar 2, 2016 at 3:07 PM, Paul Romero wrote: > One more important detail: The Android app. is not a browser. > That doesn't matter a whole lot. > My general question is what is the best and most commonly deployed way >>> to transfer data between a mobile Android based platform and a >>> MySQL database on a Linux server ? >> >> There is no "most-commonly deployed way". You could write it in pure Java, use a framework, use NodeJS, use Rails, use Elixir/Phoenix, PHP, Perl, whatever. Essentially endless. > More specifically, is Struts a >>> good choice or am I barking up the wrong tree ? >> >> Depends. Do you have a lot of Java experience? Don't already have another Java framework deployed (e.g., SpringMVC, Play, Grails)? Have the hardware necessary to run it at the loads you're expecting? > Also, it would be >>> highly desirable to address the issue of binary data. >>> >> Do you want to talk via sockets, or a web service? > The aforementioned framework requires a "web service" to be implemented >>> on the Linux server. My understanding is that such a "web service" >>> executes PHP code, embedded in HTML, to perform MySQL operations, and >>> converts MySQL responses to JSON format. >>> >> Web services can be implemented in anything. Dave
Re: Data Transfer Between Android and MySQL
The options are essentially unlimited, both in and out of the JVM ecosystem. What's "best" is more likely to be determined by the support resources you have available. On Wed, Mar 2, 2016 at 2:29 PM, Paul Romero wrote: > Dear Stuts Community: > > My general question is what is the best and most commonly deployed way > to transfer data between a mobile Android based platform and a > MySQL database on a Linux server ? More specifically, is Struts a > good choice or am I barking up the wrong tree ? Note that authentication > and security are essential in my case and my Android platform > uses SSL sockets for Internet connections. Also, it would be > highly desirable to address the issue of binary data. > > It appears that the RESTful/JSON framework is fairly common > way to achieve the functionality I described but I am not really > sure it is the best way and am certainly open to alternatives. > > The aforementioned framework requires a "web service" to be implemented > on the Linux server. My understanding is that such a "web service" > executes PHP code, embedded in HTML, to perform MySQL operations, and > converts MySQL responses to JSON format. > > I presume the "web service" can be implemented as a stand-alone module or > using Apache functionality. (i.e. Examples are the Axis framework.) Is > this correct and which option can best achieve the functionality I have > described ? > Are there widely deployed modules or software that have this functionality > ? > If not, what would be the easiest way to achieve this functionality ? > > Best Regards, > > Paul Romero > > -- > > > Paul Romero > --- > RCOM Communications Software > EMAIL: pa...@rcom-software.com > PHONE: (510)482-2769 > > > > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: why the code passes Servlet container test but fails in StrutsTestCase
This shouldn't even compile since you're attempting to return a value. On Feb 13, 2016 11:26 PM, "JOSE L MARTINEZ-AVIAL" wrote: > The method execute has void as a return type, instead of a String. > > 2016-02-13 2:26 GMT-05:00 小唐 <644282...@qq.com>: > > > Hi, > > > > I was trying to use StrutsTestCase to write a test for a Bean, which has > a > > member of String[]. The code runs perfectly in servlet container(Tomcat), > > but fails as a mock test. In EditActionTest.java, assertNotNull("The > action > > is null but should not be.", action) still works fine, but String result > = > > actionProxy.execute() returns the result as "error" instead of "success". > > All the related codes are listed below. > > > > Can anyone give me a hint? > > Thanks in advance! Tom > > > > Person.java > > public class Person{ > >String[] models = new String[]{"Ford", "Nissan"}; > > > >public void setModels(String[] models){ > > this.models = models; > >} > > > >public String[] getModels(){ > > return models; > >} > > } > > > > Edit.java > > public class EditAction extends ActionSupport{ > >Person personBean; > > > >public void execute(){ > > return SUCCESS; > >} > > } > > > > struts.xml > > > > > > /edit.jsp > > /thankyou.jsp > > > > > > > > edit.jsp > > <%@ taglib prefix="s" uri="/struts-tags" %> > > > > > > > > > > > > EditActionTest.java > > public class EditActionTest extends StrutsTestCase { > >@Test > >public void testExecuteValidationPasses() throws Exception { > > request.setParameter("personBean.models", new String[]{"Ford", > > "Nissan"}); > > ActionProxy actionProxy = getActionProxy("/edit.action") ; > > EditAction action = (EditAction) actionProxy.getAction(); > > assertNotNull("The action is null but should not be.", action); > > String result = actionProxy.execute(); > > assertEquals("The execute method did not return " + > > ActionSupport.SUCCESS + " but should have.", ActionSupport.SUCCESS, > result); > >} > > } >
Re: Jodd/Madvoc MVC framework
No issue in the sense of it working or not. *My* issue with strings is that it completely ignores the type system, such as it is, that Java gives us. On Tue, Jan 26, 2016 at 9:42 PM, Mike Guo wrote: > > > I saw your guys already have many emails about the result string, but I > think it is ok, just a little curious, any issue when we use string result? > > Thanks > > Mike > > > > > > > > > 在 2016年1月26日,22:44,Lukasz Lenart 写道: > > > > Such functionality is already supported, you can return an instance of > > the Result class instead of a String and Struts2 will handle it. > > Though, it isn't documented ;-) > > > > 2016-01-26 15:26 GMT+01:00 CRANFORD, CHRIS : > >> This is one of the aspects of Spring MVC that I prefer over that of > Struts2. The return types from action handler methods vary and influences > what the servlet handler is to do after the action handler has completed. > >> > >> The framework could be tweaked to examine the action method's return > type and based upon it branch and do various new features, allowing the > result type invocation to be handled in a more declarative way via code > rather than XML configuration or annotations. > >> > >> What Christoph presents here very closely aligns with the View based > implementations that Spring MVC expose. > >> > >> I also think we're reaching a point that some of the struts2 plugins to > support various result type implementations such as JSON and REST should be > considered for merging into the struts2 core. These result types have > become a major way to exchange data in the past several years with > microservices, web services, and AJAX support that they should be first > class denizens in the codebase. > >> > >> Chris > >> > >> -Original Message- > >> From: Christoph Nenning [mailto:christoph.nenn...@lex-com.net] > >> Sent: Tuesday, January 26, 2016 3:27 AM > >> To: Struts Users Mailing List > >> Subject: Re: Jodd/Madvoc MVC framework > >> > >> return new InstantDispatcherResult("foo.jsp"); > >> return new InstantActionRedirectResult("fooAction"); > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > ----- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Jodd/Madvoc MVC framework
I'm just not a fan of declaring things based on strings, including result types. I don't know what the easiest/best answer is, probably I'll end up doing nothing :( On Mon, Jan 25, 2016 at 10:01 AM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > > The async thing is nice; that would be a good thing to bring into S2. > > > > I still don't like the string-based action returns; strings are just > awful. > > I don't have a better solution (yet). > > > > It might be a good time for me to rethink the code-based config I'd > > implemented some time ago, e.g., use a Groovy or whatever DSL to config > the > > results, that way they end up being code artifacts. > > > > > > Another approach could be to define a Result class to avoid mapping of > strings, e.g.: > > return new Result("dispatch", "test.jsp"); > > > This would keep current result types with all their string-parameters. But > it would not be necessary to configure them and no name-matching would > take place. > > > > Regards, > Christoph > > This Email was scanned by Sophos Anti Virus > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Jodd/Madvoc MVC framework
The async thing is nice; that would be a good thing to bring into S2. I still don't like the string-based action returns; strings are just awful. I don't have a better solution (yet). It might be a good time for me to rethink the code-based config I'd implemented some time ago, e.g., use a Groovy or whatever DSL to config the results, that way they end up being code artifacts. On Mon, Jan 25, 2016 at 8:49 AM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > > Hi folks, > > > > has anyone seen this before? > > http://jodd.org/doc/madvoc/index.html > > > > Looks like they are taking basic Struts 2 concepts and mixing it with > > some Spring MVC and Seam. > > > > It might be interesting to evaluate which of their concepts might be > > nice to integrate in S2.5/3 - just sayin' ... :) > > > > - René > > > > > It is heavily centered around annotations and convention. You can feel > that it has not "more than a decade" of history. To achieve that for > struts it would be necessary to delete half the code base ;) > > > Two things that popped to my eye: > - you can declare actions as async and thus use asyncContext from servlet > api 3.0 > - you can declare result type in string returned by action instead of > configuring it up front: > return "redirect:/?value=${value}"; > > > > Regards, > Christoph > > This Email was scanned by Sophos Anti Virus > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: unsubscribe me
That isn't how it works. https://struts.apache.org/mail.html On Wed, Jan 6, 2016 at 4:22 PM, john feng wrote: > unsubscribe > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Struts 1 migrate to Struts 2 question
> > The effort required to upgrade and test a large application to Struts > version 2 looks very large. The effort to upgrade and test the entire > application in a single release looks undoable. > Agreed. > 1) Are there any software tools that can be used to speed up the time > to update JSPs, page validation, tag library calls, Action classes, etc to > reduce development, improve code quality, and reduce testing time? > None that I'm aware of. > 2) Can a single application use both Struts 1 and Struts 2 at the > same time? > Yes. > a. Would it be feasible to use Struts 2 for any new pages and > upgrade to Struts 2 for any pages being changed for other reasons? > Yes. > 3) We do an application release every 6 weeks or so. We can't do > this in one release unless we find or develop a tool to help us convert > pages to Struts 2. We are considering upgrading 100 pages per release to > Struts 2. Has anyone done something like this successfully? What are best > practices and lessons learned? > That strikes me as a fairly aggressive timeline, obviously it depends on the pages and functionality. There are zero similarities between S1 and S2. If your S1 app was well-architected the effort will be confined to the view and controller layers, at least, but even that is non-trivial. 4) Test effort. With all of the code changes required it seems that > developers could miss things. > If you have no integration tests, then yes, this will be fraught with potential issues. Again, a well-architected S1 app is in less danger since the important business logic is already isolated and Struts acts only as a mediation layer between the client (e.g., the browser or API users) and the business logic. The ultimate answer(s) really depends on the nature of your app. If the JSP pages are simple it might be possible to write a small conversion tool that does a rough translation between tag libraries; beyond that... it'll be mostly manual labor. Dave -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: CVE-2015-5209
Same as s2-025 from your ealier question. On Tue, Oct 6, 2015 at 3:05 PM, Dave Newton wrote: > Expressions aren't evaluated in S1; there is nothing like it I'm aware of. > > Dave > > > On Tue, Oct 6, 2015 at 3:04 PM, David Gawron wrote: > >> Hello, >> >> I know that Struts1 and 2 are completely different code bases, but I was >> wondering if the technique used by the exploit described in the CVE and >> https://struts.apache.org/docs/s2-026.html could possibly apply to a >> Struts 1 deployment? There is no references to a ValueStack in the Struts >> 1 code, but is there an equivalent feature that could be vulnerable? >> >> -Dave- >> >> -- >> Dave Gawron >> Architect, WebSphere Portlet Factory >> 978-899-2171 T/L 276-2171 >> dgaw...@us.ibm.com >> >> "Perfection is achieved, not when there is nothing more to add, but when >> there is nothing left to take away." >> -- Antoine de Saint-Exupéry >> >> > > > -- > e: davelnew...@gmail.com > m: 908-380-8699 > s: davelnewton_skype > t: @dave_newton <https://twitter.com/dave_newton> > b: Bucky Bits <http://buckybits.blogspot.com/> > g: davelnewton <https://github.com/davelnewton> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> > > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>