Re: Inline handlers and content security policy in struts2 6.3

2024-03-13 Thread Dave Newton
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

2024-02-26 Thread Dave Newton
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

2024-02-23 Thread Dave Newton
(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"

2023-12-08 Thread Dave Newton
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"

2023-12-08 Thread Dave Newton
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"

2023-12-08 Thread Dave Newton
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

2023-11-24 Thread Dave Newton
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

2023-06-22 Thread Dave Newton
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

2023-06-05 Thread Dave Newton
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

2023-06-04 Thread Dave Newton
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

2023-02-13 Thread Dave Newton
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

2023-02-13 Thread Dave Newton
   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

2022-07-26 Thread Dave Newton
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

2021-02-22 Thread Dave Newton
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?

2020-08-21 Thread Dave Newton
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

2020-08-13 Thread Dave Newton
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

2020-06-02 Thread Dave Newton
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

2020-05-28 Thread Dave Newton
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

2020-05-28 Thread Dave Newton
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

2020-05-05 Thread Dave Newton
`import java.nio.file.DirectoryStream.Filter` is not a servlet filter.

Dave


Re: How to (cleanly) disable specific namespace / action hierarchy at runtime

2020-03-25 Thread Dave Newton
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

2020-01-26 Thread Dave Newton
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.

2020-01-08 Thread Dave Newton
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.

2020-01-08 Thread Dave Newton
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

2019-12-04 Thread Dave Newton
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

2019-12-04 Thread Dave Newton
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

2019-12-04 Thread Dave Newton
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

2019-12-04 Thread Dave Newton
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

2019-12-03 Thread Dave Newton
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

2019-12-03 Thread Dave Newton
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

2019-12-03 Thread Dave Newton
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

2019-12-03 Thread Dave Newton
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

2019-12-03 Thread Dave Newton
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

2019-11-15 Thread Dave Newton
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

2019-10-03 Thread Dave Newton
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

2019-09-27 Thread Dave Newton
> 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.

2019-05-21 Thread Dave Newton
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

2019-04-02 Thread Dave Newton
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

2019-03-13 Thread Dave Newton
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

2019-03-11 Thread Dave Newton
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

2019-03-11 Thread Dave Newton
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

2019-03-08 Thread Dave Newton
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: [EXTERNAL] Re: Struts 2.5.x support above Java 8

2018-11-11 Thread Dave Newton
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?

2018-11-09 Thread Dave Newton
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

2018-10-25 Thread Dave Newton
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

2018-10-19 Thread Dave Newton
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

2018-10-17 Thread Dave Newton
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

2018-10-17 Thread Dave Newton
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

2018-06-30 Thread Dave Newton
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

2018-06-13 Thread Dave Newton
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

2018-04-11 Thread Dave Newton
On Wed, Apr 11, 2018 at 3:32 PM Sean Son <linuxmailinglistsem...@gmail.com>
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

2018-04-09 Thread Dave Newton
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=19000101_01=222415=en_US=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

2018-02-25 Thread Dave Newton
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 <djw...@sjdjweis.com> 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: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-12 Thread Dave Newton
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 <albertk...@gmail.com> wrote:

> struts2 version: 2.1.6
>
> On Sat, Nov 11, 2017 at 9:47 PM, Dave Newton <davelnew...@gmail.com>
> wrote:
>
> > What version of Struts 2 are you attempting to use?
> >
> > On Sat, Nov 11, 2017 at 5:58 PM albert kao <albertk...@gmail.com> 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

Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-11 Thread Dave Newton
What version of Struts 2 are you attempting to use?

On Sat, Nov 11, 2017 at 5:58 PM albert kao <albertk...@gmail.com> 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.Notifica

Re: Struts2 - Open page in same tab

2017-08-10 Thread Dave Newton
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

2017-08-10 Thread Dave Newton
Same window is the default.

On Thu, Aug 10, 2017 at 4:18 PM Deborah White <deborah.wh...@doj.ca.gov>
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 <user@struts.apache.org>
> Subject: Re: Struts2 - Open page in same tab
>
> 2017-08-10 22:10 GMT+02:00 Deborah White <deborah.wh...@doj.ca.gov>:
> >  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: issue with getting current date using date tag in latest struts 2.3.3X

2017-03-10 Thread Dave Newton
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

2017-02-13 Thread Dave Newton
On Mon, Feb 13, 2017 at 11:24 AM, THAN_HVFC <than_spr...@yahoo.com.invalid>
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

2016-09-20 Thread Dave Newton
te, delete 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 <davelnew...@gmail.com
> <javascript:;>>
> > wrote:
> > >
> > > > On Mon, Sep 19, 2016 at 8:34 PM, Joseph B Cotton <cott...@gmail.com
> <javascript:;>>
> > > > 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

2016-09-19 Thread Dave Newton
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

2016-09-19 Thread Dave Newton
On Mon, Sep 19, 2016 at 4:09 PM, Joseph B Cotton <cott...@gmail.com> 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

2016-05-02 Thread Dave Newton
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 <araj...@ncsu.edu>
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

2016-03-02 Thread Dave Newton
(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

2016-03-02 Thread Dave Newton
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 <pa...@rcom-software.com> 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

2016-02-14 Thread Dave Newton
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

2016-01-26 Thread Dave Newton
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 <hongw...@163.com> 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 <lukaszlen...@apache.org> 写道:
> >
> > 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 <chris.cranf...@setech.com>:
> >> 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 <user@struts.apache.org>
> >> 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

2016-01-25 Thread Dave Newton
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: Jodd/Madvoc MVC framework

2016-01-25 Thread Dave Newton
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: unsubscribe me

2016-01-06 Thread Dave Newton
That isn't how it works.

https://struts.apache.org/mail.html

On Wed, Jan 6, 2016 at 4:22 PM, john feng <johngf...@gmail.com> 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

2015-12-22 Thread Dave Newton
>
> 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

2015-10-06 Thread Dave Newton
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 <dgaw...@us.ibm.com> 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>


Re: CVE-2015-5209

2015-10-06 Thread Dave Newton
Same as s2-025 from your ealier question.

On Tue, Oct 6, 2015 at 3:05 PM, Dave Newton <davelnew...@gmail.com> 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 <dgaw...@us.ibm.com> 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>


Re: [S2] Trouble getting started [OFF-LIST]

2015-10-01 Thread Dave Newton
I'm not sure what the issue is; it starts up fine for me, except for the
bogus XML in list.jsp.

On Thu, Oct 1, 2015 at 10:06 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> Works :)
>
> Just dropped your package into webapps folder (Apache Tomcat 7.0.40 on
> JDK8) and all is ok - except list.jsp contains some strange XML
> definition (in wrong place)
>
> http://screencast.com/t/t8s0xyQCHbG4
>
>
> 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
>
>


-- 
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: Spring Injection Strange behaviour

2015-09-05 Thread Dave Newton
Not sure, but if nothing else the action should be set to `prototype`
scope, as they're instantiated per-request.

Are you using the Struts 2 Spring plugin?

On Sat, Sep 5, 2015 at 8:47 AM, Chris <crisp...@gmx.us> wrote:

> I'm trying to use the Spring plugin to inject a dependency into my action
> at runtime. This is the first time I've tried this with Struts2 so I may
> have missed something but I'm stumped because I can see the dependency is
> injected but then the object is later null when I need to use it. Here is
> my action class code:
>
> public class UserRegisterAction extends ActionSupport {
> private User user = new User();
>
> @Override
> public String execute(){
> getUserService().saveUser(user);
> return "success";
> }
>
> public UserServiceImpl getUserService(){
> return userService;
> }
>
> UserServiceImpl userService;
> public void setUserService(UserServiceImpl us){
> this.userService = us;
> }
> }
>
> Using the debugger I can see that upon startup "setUserService is called
> and this.userService is set, so the injection appears to be working ok, but
> when the execute method is called when the page is submitted userService is
> null. I'm quite new to Struts but I don't understand how my userService is
> being null.
>
> Can anyone see what I am missing?
>
>
> My applicationContext:
>
>
> 
>
> http://www.springframework.org/schema/beans;
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns:tx="
> http://www.springframework.org/schema/tx;
>xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx.xsd;
> default-autowire="byName">
>
>  class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
> />
>
>  class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
>
>  class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
> 
> 
>  class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
>  value="org.hibernate.dialect.MySQL5Dialect" />
> 
> 
> 
> 
> 
>
>  class="org.springframework.jdbc.datasource.DriverManagerDataSource">
> 
>  />
> 
> 
> 
>
>  class="org.springframework.orm.jpa.JpaTransactionManager">
> 
> 
>
> 
>
>  scope="prototype"/>
>
> 
> 
> 
>
> 
>
>
> Web.xml:
>
> 
> http://xmlns.jcp.org/xml/ns/javaee;
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
> http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
>  version="3.1">
>
>
> struts2
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> 
>
> 
> struts2
> /*
> 
>
> 
>
> org.springframework.web.context.ContextLoaderListener
> 
> 
>
>
> -
> 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: Is the vulnerability documented in CVE-2015-5169 also applicable to Struts 1?

2015-09-04 Thread Dave Newton
It was actually a rebranding of an existing framework, but yep; separate
codebase.

On Fri, Sep 4, 2015 at 12:51 PM, David Gawron <dgaw...@us.ibm.com> wrote:

> Dave,
>
> Thanks for the quick reply.  It looked like Struts 2 was a rewrite so I
> assumed it was very unlikely that the same vulnerability existed in Struts
> 1, but I needed to ask.
>
> -Dave-
>
>
>
>
> From:   Dave Newton <davelnew...@gmail.com>
> To: Struts Users Mailing List <user@struts.apache.org>
> Date:   09/03/2015 05:01 PM
> Subject:Re: Is the vulnerability documented in CVE-2015-5169 also
> applicable to Struts 1?
>
>
>
> There's no such thing as `devMode` in Struts 1.
>
> Struts 1 vulnerabilities would be in Struts 1 announcements, although with
> the EOL, announcements and fixes may never happen.
>
> Struts 1 and Struts 2 have essentially zero in common.
>
> Dave
>
>
> On Thu, Sep 3, 2015 at 4:41 PM, David Gawron <dgaw...@us.ibm.com> wrote:
>
> > The security bulletin for CVE-2015-5169 (
> > https://struts.apache.org/docs/s2-025.html) only mentions Struts 2.
> Anyone
> > know if the vulnerability also exists in Struts 1 in some form?  I
> realize
> > Struts 1.x are no longer supported and that is why the bulletin doesn't
> > cover those releases.  I grabbed the 1.3.10 code and searched for the
> > devMode property (that property appears to be involved in the
> > vulnerability) and did not find any refs.  Searching for that property
> in
> > 2.x yields lots of references and leads me to believe the devMode
> > functionality was added in Struts 2.  If so, then that is good but not
> > conclusive evidence the vulnerability is not in Struts 1.  I'd
> appreciate
> > hearing  any info others have on CVE-2015-5169 and Struts 1.
> >
> > -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>
>
>
>
>


-- 
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: Is the vulnerability documented in CVE-2015-5169 also applicable to Struts 1?

2015-09-03 Thread Dave Newton
There's no such thing as `devMode` in Struts 1.

Struts 1 vulnerabilities would be in Struts 1 announcements, although with
the EOL, announcements and fixes may never happen.

Struts 1 and Struts 2 have essentially zero in common.

Dave


On Thu, Sep 3, 2015 at 4:41 PM, David Gawron <dgaw...@us.ibm.com> wrote:

> The security bulletin for CVE-2015-5169 (
> https://struts.apache.org/docs/s2-025.html) only mentions Struts 2. Anyone
> know if the vulnerability also exists in Struts 1 in some form?  I realize
> Struts 1.x are no longer supported and that is why the bulletin doesn't
> cover those releases.  I grabbed the 1.3.10 code and searched for the
> devMode property (that property appears to be involved in the
> vulnerability) and did not find any refs.  Searching for that property in
> 2.x yields lots of references and leads me to believe the devMode
> functionality was added in Struts 2.  If so, then that is good but not
> conclusive evidence the vulnerability is not in Struts 1.  I'd appreciate
> hearing  any info others have on CVE-2015-5169 and Struts 1.
>
> -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: struts2 s:autocompleter

2015-08-24 Thread Dave Newton
The deprecated Dojo-based tags (which I would recommend against using in
fairly strong terms) or the S2 jQuery plugin?

On Mon, Aug 24, 2015 at 10:33 AM, fea jabi zy...@hotmail.com wrote:

  Using struts-core 2.3.24.jar



 I am trying to do 2 dependable autocomplete drop downs and found an
 example here

 http://struts.fromdev.com/2009/10/struts-2-ajax-autocomplete-dropdown.html



 But getting error that as

 JSPG0046E: Unable to locate tagfile for tag autocompleter



 I did check the jar and I don't see autocompleter tag in it. Which struts2
 jar has this tag???





-- 
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 tabbed panel not working

2015-08-21 Thread Dave Newton
Why are you using the long-deprecated Dojo tags?
On Aug 21, 2015 2:06 AM, fea jabi zy...@hotmail.com wrote:

  Using Struts2.3 . Using the below code to display the tabbed panel but
 it's not working. What am I missing in this? All I see is some text of Tab1
 Tab2 on screen. no css is applied.  Have struts2-dojo-plugin in build path.
 What else do I need?

 Using struts2 tiles too. Any help is appreciated.

 %@ taglib prefix=s uri=/struts-tags %

 %@ taglib prefix=sx uri=/struts-dojo-tags%

 html

 head

 meta http-equiv=Content-Type content=text/html;
 charset=UTF-8  META HTTP-EQUIV=Expires CONTENT=0
  META HTTP-EQUIV=Pragma CONTENT=no-cache   META
 HTTP-EQUIV=Cache-Control CONTENT=no-cacheMETA
 HTTP-EQUIV=Cache-Control CONTENT=no-store   s:head/
  sx:head/

 link rel=stylesheet type=text/css
 href=theme/test.css   script src=scripts/test.js //script
/head

 body
s:form
   sx:tabbedpanel id=tabContainer

  sx:div label=Tab 1Tab 1/sx:div

  sx:div label=Tab 2Tab 2/sx:div

   /sx:tabbedpanel

/s:form
 /body
 /html





Re: is there any method that executes only when validation fails

2015-04-22 Thread Dave Newton
No.

On Wed, Apr 22, 2015 at 11:43 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi,
In struts Action class is there any method that gets executed only when
 validation fails?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*




-- 
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 Plugin Jquery vs Dojo

2015-02-25 Thread Dave Newton
Less a concern than the Dojo tags being deprecated for years and using an
incredibly out-of-date Dojo.

You can always use plain JS, too.

Dave
On Feb 25, 2015 8:38 AM, Dhandapani, Rajeswaran rdhandap...@inautix.co.in
wrote:

 Hi All,

 Could you please help me to choose the right plugin between Jquery and
 Dojo?

 We need mainly need this for date picker fields. I like the Jquery date
 picker but it is not bundled with Struts 2 pack, is that a concern?

 Thanks  Regards,
 Rajeswaran D

 **
 This message and any files or attachments sent with this message contain
 confidential information and is intended only for the individual named.  If
 you are not the named addressee, you should not disseminate, distribute,
 copy or use any part of this email.  If you have received this message in
 error, please delete it and all copies from your system and notify the
 sender immediately by return Email.

 Email transmission cannot be guaranteed to be secure or error-free as
 information can be intercepted, corrupted, lost, destroyed, late,
 incomplete or may contain viruses.  The sender, therefore, does not accept
 liability for any errors or omissions in the contents of this message,
 which arise as a result of email transmission.
 **


Re: dynamically generating user input fields

2015-02-25 Thread Dave Newton
Increment a counter?
On Feb 25, 2015 7:42 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
wrote:

 Actually i have a ListStudent students   in my action class. but when i
 am dynamically genaerating fields in html page how to change the names of
 the fields that are dynamically getting generated?   for the first field i
 gave students[0].name but for the second field that is dynamically getting
 generated how can i change the name of the field like students[1].name?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Wed, Feb 25, 2015 at 5:51 PM, Christoph Nenning 
 christoph.nenn...@lex-com.net wrote:

   Hi i have a jsp page with a button capture student details. when that
   button is pressed it has to display few user input fields on the same
  page
   like student Name, student id and few other fields . now user enters
  the
   details of the student and when he press the button again the same set
  of
   fields have to appear again in order to capture the 2nd student
 details.
   how to achieve this?
  
  
 
 
  As member of your action you can use a MapString, String. The Map-Key
 is
  the dynamic field name. You need some JS to generate a new input-field in
  the browser. As html-input-name you can use an OGNL expression like
  map['fieldName']. That way struts can set the keys and values in your
  action's map.
 
 
 
  Regards,
  Christoph
 
  This Email was scanned by Sophos Anti Virus
 



Re: Struts Spring dependency

2015-02-20 Thread Dave Newton
(Personally, I'd just try it.)

If it's not being used, it's not being used--we don't have any way of
knowing if it *actually* isn't being used short of looking at it, but if
you say it works without it, then it probably isn't.

Dave


On Fri, Feb 20, 2015 at 8:42 AM, Tamer Erdogan tamer.erdo...@vasco.com
wrote:

 Hi,

 I have taken over a struts2 application and there is something, that
 confuses me.
 Under WEB-INF there is applicationContext.xml with the following content:
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
 http://www.springframework.org/dtd/spring-beans.dtd;
 beans default-autowire=autodetect
 /beans

 And in web.xml there is the following:
 ...
 listener

 listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
 /listener
 ...

 And in pom.xml of course the struts2-spring-plugin is added as dependency.
 In the web application itself, the spring is not used anywhere. If I
 remove the above definitions, the application itself is running and I don't
 see any errors.
 My question is that, does struts2 needs the spring-plugin absolutely? If I
 remove this dependency, would it be safe or what is the best practice here?

 Thanks and kind regards
 Tamer Erdogan




-- 
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: Fetch ApplicationResources.properties values in jspf?

2015-02-19 Thread Dave Newton
Like you're doing?

Are you having a specific issue?

On Thu, Feb 19, 2015 at 3:21 PM, Lilylove toshop 
lilylove2s...@yahoo.com.invalid wrote:

  Hi All,
 Could you please help?  how do I fetch the properties value in the jspf?
 I have the 'Footer.jspf' file which is included in all of my jsp files.
 Thanks!!

 /* ApplicationResources.properties */lcp.pluginFooter=For access to
 required Software Plugins, please select the Software Plugins link
 below and follow directions to download. br a target=_blank
 href=/plugins.do?action=pluginsSoftware Plugins/a.
 /*Footer.jspf */%@ page contentType=text/html; charset=UTF-8%%@
 taglib prefix=s uri=/struts-tags%
 div style=clear:both/divdiv style=margin-bottom:15pxdiv
 class=tabletext style=margin-left:15pxs:text
 name=lcp.pluginFooter//div/div










-- 
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: Fetch ApplicationResources.properties values in jspf?

2015-02-19 Thread Dave Newton
If it's not included in a JSP page it doesn't surprise me too much; are you
showing the page through an action? The text tag depends on a text prvider
being in the value stack.

On Thu, Feb 19, 2015 at 4:35 PM, Lilylove toshop 
lilylove2s...@yahoo.com.invalid wrote:

 The Footer.jspf was included in my index.html but when I deployed the
 application, the footer text was not displayed in my index.html.

  On Thursday, February 19, 2015 4:26 PM, Dave Newton 
 davelnew...@gmail.com wrote:


  Like you're doing?

 Are you having a specific issue?

 On Thu, Feb 19, 2015 at 3:21 PM, Lilylove toshop 
 lilylove2s...@yahoo.com.invalid wrote:

   Hi All,
  Could you please help?  how do I fetch the properties value in the jspf?
  I have the 'Footer.jspf' file which is included in all of my jsp files.
  Thanks!!
 
  /* ApplicationResources.properties */lcp.pluginFooter=For access to
  required Software Plugins, please select the Software Plugins link
  below and follow directions to download. br a target=_blank
  href=/plugins.do?action=pluginsSoftware Plugins/a.
  /*Footer.jspf */%@ page contentType=text/html; charset=UTF-8%%@
  taglib prefix=s uri=/struts-tags%
  div style=clear:both/divdiv style=margin-bottom:15pxdiv
  class=tabletext style=margin-left:15pxs:text
  name=lcp.pluginFooter//div/div
 
 
 
 
 
 
 
 


 --
 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


Re: How do i prevent Struts 2 json plugin from escaping already formated json?

2015-02-18 Thread Dave Newton
Don't use the JSON plugin? The point of it is to create JSON, but you
already have JSON.
On Feb 18, 2015 7:18 AM, bavon mike bavom...@gmail.com wrote:

 I already have a json string like:

 {name: Simple name, description: simple description}

 When using Struts 2 json plugin, it returns escaped string like:

 {\name\: \Simple name\, \description\: \simple description\}

 How do i configure struts 2 plugin to avoid this escaping?

 Regards
 Mike



Re: problem in xml validation

2015-02-17 Thread Dave Newton
... If you want any help, you need to provide actionable information.

My first guesses are that you're either missing an `input` definition, or
its JSP page isn't where you think it is.

On Tue, Feb 17, 2015 at 10:05 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi,
 I have written AddTestAction.class and placed
 AddTestAction-validation.xml file in the same package. but the field
 validations are not happening. i have written int validators. Instead
 showing validation errors the browser is displaying page not found.  if i
 remove validation xml file everthing is working fine. what could be the
 problem?

 do i need to paste the code?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*




-- 
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: Vulnerability issues v1, v1.1, v1.2, v1.2.7, v1.2.9

2015-02-01 Thread Dave Newton
Struts 1 and 2 are related by name only.
On Feb 1, 2015 12:04 PM, viswanathan.sugu...@accenture.com wrote:

 Hi,

 We have applications running on struts 1.0, 1.1, 1.2, 1.2.7 and 1.2.9

 I assessing for the following vulnerabilities in struts 2.0

 https://cwiki.apache.org/confluence/display/WW/S2-020
 https://cwiki.apache.org/confluence/display/WW/S2-021

 I would like to know, if any of these struts versions 1.0, 1.1, 1.2, 1.2.7
 and 1.2.9, is affected by this security vulnerability.

 Kindly advice, if it is safe to run these applications in their existing
 versions.

 Thanks  Regds.,
 Viswanathan S


 

 This message is for the designated recipient only and may contain
 privileged, proprietary, or otherwise confidential information. If you have
 received it in error, please notify the sender immediately and delete the
 original. Any other use of the e-mail by you is prohibited. Where allowed
 by local law, electronic communications with Accenture and its affiliates,
 including e-mail and instant messaging (including content), may be scanned
 by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy.

 __

 www.accenture.com



Re: Differences between struts 2.0.14 and 2.3.16.3

2015-02-01 Thread Dave Newton
Stay by reading the release notes.

Waiting that long to upgrade has repercussions.
On Feb 1, 2015 12:03 PM, viswanathan.sugu...@accenture.com wrote:

 Hi,

 I have application running on struts 2.0.14.

 Due to the following security issues
 https://cwiki.apache.org/confluence/display/WW/S2-020
 https://cwiki.apache.org/confluence/display/WW/S2-021

 we are planning to upgrade struts version to 2.3.16.3

 I m assessing the impact of upgrading to the 2.3.16.3 version. I would
 like to know, on what APIs have been removed or changed in this version.

 Kindly help to advice on the API changes in the version 2.3.16.3


 Thanks  Regds.,
 Viswanathan S


 

 This message is for the designated recipient only and may contain
 privileged, proprietary, or otherwise confidential information. If you have
 received it in error, please notify the sender immediately and delete the
 original. Any other use of the e-mail by you is prohibited. Where allowed
 by local law, electronic communications with Accenture and its affiliates,
 including e-mail and instant messaging (including content), may be scanned
 by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy.

 __

 www.accenture.com



Re: regex validator problem

2014-12-27 Thread Dave Newton
Why use a regex for what appears to be a number?
On Dec 27, 2014 5:36 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
wrote:

 i have a select box. by defualt it submits -1. I want to write a
 validation using regex tosay the selection is mandatory. I have written the
 validator in the following way but it is not working. Please help.

 field-validator type=regex
   param name=regex![CDATA[[1-9]{1,3}]]/param
   message key=error.branch.required cannot find
 error.branch.required/message
   /field-validator


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



Re: regex validator problem

2014-12-27 Thread Dave Newton
On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
  validator in the following way but it is not working. Please help.

Define not working.

-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: regex validator problem

2014-12-27 Thread Dave Newton
Did you try defining a complete regex, e.g., with the start/end
markers, `^` and `$`, at the beginning/end of the regex?

On Sat, Dec 27, 2014 at 8:10 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
 Hi Dave,
   when -1 is getting submited it has to display error msg which is
 not getting displayed. successfully moving to the next page. It is not
 moving to the input page even.
 Now i have changed the validator to int  so everything is working fine.
 but i need regex validator to work even for further validations.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Sat, Dec 27, 2014 at 7:33 PM, Dave Newton davelnew...@gmail.com wrote:

 On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
   validator in the following way but it is not working. Please help.

 Define not working.

 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton
 b: Bucky Bits
 g: davelnewton
 so: Dave Newton

 -
 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
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: validation problem

2014-12-25 Thread Dave Newton
Simple theme is simpler than you think.
On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
wrote:

 I am using struts2.3.20 and using simple theme.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi i am having problem in turning on validations. I have written
  actionClass-validation.xml file in the same package as action class.
 but
  the validations are not working. the following is my validation xml file.
 
  !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN
  http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
  validators
 
  field name=primaryDetails.branchId
   field-validator type=required
 message key=error.additional.details.passport.noCould not
 find
  error.additional.details.passport.no!/message
   /field-validator
   field-validator type=regex
param name=regex![CDATA[[1-9]{0,40}]]/param
 message key=error.additional.details.pancard.noCould not find
  error.additional.details.pancard.no/message
   /field-validator
  /field
   field name=primaryDetails.patientName
   field-validator type=required
 message key=error.additional.details.passport.noCould not
 find
  error.additional.details.passport.no!/message
   /field-validator
 
  /field
 
  /validators
 
  do i have to do something else to turn on validations?
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



Re: validation problem

2014-12-25 Thread Dave Newton
Please read up on the themes.

Nutshell: validation happens (this is trivially provable), validation
message display does not.

On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
 is it because of the simple theam? In simple theam validations dont happen
 is it? if i dont use simple theme view components are generating their own
 decoration. Our custom alignment is going wrong.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com wrote:

 Simple theme is simpler than you think.
 On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  I am using struts2.3.20 and using simple theme.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
   Hi i am having problem in turning on validations. I have written
   actionClass-validation.xml file in the same package as action class.
  but
   the validations are not working. the following is my validation xml
 file.
  
   !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
 1.0.3//EN
   http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
   validators
  
   field name=primaryDetails.branchId
field-validator type=required
  message key=error.additional.details.passport.noCould not
  find
   error.additional.details.passport.no!/message
/field-validator
field-validator type=regex
 param name=regex![CDATA[[1-9]{0,40}]]/param
  message key=error.additional.details.pancard.noCould not
 find
   error.additional.details.pancard.no/message
/field-validator
   /field
field name=primaryDetails.patientName
field-validator type=required
  message key=error.additional.details.passport.noCould not
  find
   error.additional.details.passport.no!/message
/field-validator
  
   /field
  
   /validators
  
   do i have to do something else to turn on validations?
  
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
 




-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: validation problem

2014-12-25 Thread Dave Newton
Then you're doing something else wrong; never mind.

You still won't see the messages unless you display them manually.

On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
 in my case validations are not happenening . Even though validation fails
 it is moving to succeess rather than input jsp.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com wrote:

 Please read up on the themes.

 Nutshell: validation happens (this is trivially provable), validation
 message display does not.

 On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  is it because of the simple theam? In simple theam validations dont
 happen
  is it? if i dont use simple theme view components are generating their
 own
  decoration. Our custom alignment is going wrong.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Simple theme is simpler than you think.
  On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
  
  wrote:
 
   I am using struts2.3.20 and using simple theme.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
Hi i am having problem in turning on validations. I have written
actionClass-validation.xml file in the same package as action
 class.
   but
the validations are not working. the following is my validation xml
  file.
   
!DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
  1.0.3//EN
http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
validators
   
field name=primaryDetails.branchId
 field-validator type=required
   message key=error.additional.details.passport.noCould
 not
   find
error.additional.details.passport.no!/message
 /field-validator
 field-validator type=regex
  param name=regex![CDATA[[1-9]{0,40}]]/param
   message key=error.additional.details.pancard.noCould not
  find
error.additional.details.pancard.no/message
 /field-validator
/field
 field name=primaryDetails.patientName
 field-validator type=required
   message key=error.additional.details.passport.noCould
 not
   find
error.additional.details.passport.no!/message
 /field-validator
   
/field
   
/validators
   
do i have to do something else to turn on validations?
   
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
  
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton
 b: Bucky Bits
 g: davelnewton
 so: Dave Newton

 -
 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
b: Bucky Bits
g: davelnewton
so: Dave Newton

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: validation problem

2014-12-25 Thread Dave Newton
Unrelated to the technical issue: bear in mind the mailing list is a
volunteer-staffed resource. Nobody is deliberately delaying a
response. We already know you need help. In the US, at least, it's a
fairly major holiday, and people are doing things besides trying to
reproduce your environment and code to help out.

With that in mind, please be patient.


On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
 kindly help me solve this issue

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 my struts config.xml is as below.kindly help me in solving this.

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.3//EN
 http://struts.apache.org/dtds/struts-2.3.dtd;

 struts

 constant name=struts.enable.DynamicMethodInvocation value=false /
 constant name=struts.devMode value=true /



 package name=sr namespace=/ extends=struts-default

  interceptors
 interceptor-stack name=appDefault
   interceptor-ref name=defaultStack /
 /interceptor-stack
 /interceptors

 default-interceptor-ref name=appDefault /

 global-results
 result name=error/error.jsp/result
 /global-results

 global-exception-mappings
 exception-mapping exception=java.lang.Exception
 result=error/
 /global-exception-mappings

   action name=start class=com.zedlabs.samplereg.action.InitialAction
 
 result name=success /sampleReg/jsp/sampleRegTemplate.jsp/result

   /action

   action name=sampleRegOne
 class=com.zedlabs.samplereg.action.SampleRegOne 
 result name=success
 /sampleReg/jsp/sampleRegTwoTemplate.jsp/result
 result name=input /sampleReg/jsp/sampleRegTemplate.jsp/result

   /action
   action name=sampleRegTwo
 class=com.zedlabs.samplereg.action.SampleRegTwoAction 
 result name=success
 /sampleReg/jsp/sampleRegThreeTemplate.jsp/result
   /action
   action name=sampleRegThree
 class=com.zedlabs.samplereg.action.SampleRegThreeAction 
 result name=success
 /sampleReg/jsp/sampleRegFourTemplate.jsp/result
   /action

 /package

 include file=mailreader-default.xml/

 /struts


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 7:47 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 The following is my action class

 package com.zedlabs.samplereg.action;

 import java.util.HashMap;
 import java.util.Map;

 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;

 import com.zedlabs.action.ZedActionSupport;
 import com.zedlabs.samplereg.dto.PDDto;
 import com.zedlabs.samplereg.service.SampleRegService;
 import com.zedlabs.samplereg.service.SampleRegServiceImpl;

 public class SampleRegOne extends ZedActionSupport {

 private static final long serialVersionUID = -8621676046564513353L;
 private Log log=LogFactory.getLog(SampleRegOne.class);
 private SampleRegService sampleReg=new SampleRegServiceImpl();
  private MapString,String sampledrawnBy=new HashMapString,String();
 private PDDto primaryDetails=new PDDto();
  @Override
 public String execute() {
 try{
 sampledrawnBy.put(zedlabs, Zedlabs);
 sampleReg.savePrimaryDetails(primaryDetails);
  }catch(Exception e){
 log.error(e.getMessage(), e);
 }
 return SUCCESS;
 }

 public MapString, String getSampledrawnBy() {
 return sampledrawnBy;
 }

 public void setSampledrawnBy(MapString, String sampledrawnBy) {
 this.sampledrawnBy = sampledrawnBy;
 }

 public PDDto getPrimaryDetails() {
 return primaryDetails;
 }

 public void setPrimaryDetails(PDDto primaryDetails) {
 this.primaryDetails = primaryDetails;
 }


 }


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 if the validation works then i can think about messages

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 I have changed the theme to css_xhtml   so it should display right?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton davelnew...@gmail.com
 wrote:

 Then you're doing something else wrong; never mind.

 You still won't see the messages unless you display them manually.

 On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  in my case validations are not happenening . Even though validation
 fails
  it is moving to succeess rather than input jsp.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla

Re: Problem with form tag

2014-12-19 Thread Dave Newton
The default XHTML theme? Hard to say without actionable details.
On Dec 19, 2014 4:52 PM, Yaragalla Muralidhar yaragallamur...@gmail.com
wrote:

 I am using struts2.3.20. I have designed my page using divs. Everything is
 perfect. at the end i have added s:form tag. all the alignment went
 wrong. The page looks awkward. what could be the problem?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



Re: problem with select tag

2014-12-19 Thread Dave Newton
Is the property set in the Acton?
On Dec 19, 2014 9:54 PM, Yaragalla Muralidhar yaragallamur...@gmail.com
wrote:

 Hi i am using the select tag as below

 s:select  name=branches
  headerKey=-1  headerValue=Select Branch
list=branches   cssClass=select
  required=true  /

 by default it should show select Branch but it is showing one of the
 values as the default value. Am i missing something?

  I want Select Branches as the default option.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



Re: which dependencies do i need for xml based validation?

2014-12-12 Thread Dave Newton
Correct; validation is handled within XWork.

Dave


On Fri, Dec 12, 2014 at 9:39 AM, Christoph Nenning 
christoph.nenn...@lex-com.net wrote:

  Hi,
 
  Specifically do I need the commons-validator-xxx.jar for the struts2
  validation?
 

 nope, you don't need it. AFAIK validation should work out of the box, no
 additional dependencies necessary.

 It' easiest to get list of required JARs through maven.


 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: com/opensymphony/xwork2/util/finder

2014-12-11 Thread Dave Newton
Looks like the jQuery plugin needs to be updated.

On Thu, Dec 11, 2014 at 9:45 AM, Emi Lu em...@encs.concordia.ca wrote:

 Good morning,

 After upgrade to 2.3.20, my logs says java.lang.IncompatibleClassChangeError:
 com/opensymphony/xwork2/util/finder. Could someone tell me which libs
 missing or version conflict please?

 ERROR util.finder.ClassFinder.error:42 - Unable to read class
 [com.jgeppert.struts2.jquery.views.freemarker.tags.DialogModel]
 java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/
 finder/ClassFinder$InfoBuildingClassVisitor
 at com.opensymphony.xwork2.util.finder.ClassFinder.
 readClassDef(ClassFinder.java:718)
 at com.opensymphony.xwork2.util.finder.ClassFinder.init(
 ClassFinder.java:113)
 at org.apache.struts2.convention.PackageBasedActionConfigBuilde
 r.findActions(PackageBasedActionConfigBuilder.java:390)
 at org.apache.struts2.convention.PackageBasedActionConfigBuilde
 r.buildActionConfigs(PackageBasedActionConfigBuilder.java:347)
 at org.apache.struts2.convention.ClasspathPackageProvider.
 loadPackages(ClasspathPackageProvider.java:53)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.
 reloadContainer(DefaultConfiguration.java:274)
 at com.opensymphony.xwork2.config.ConfigurationManager.
 getConfiguration(ConfigurationManager.java:67)
 at org.apache.struts2.dispatcher.Dispatcher.getContainer(
 Dispatcher.java:967)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
 Dispatcher.java:435)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)
 at org.apache.struts2.dispatcher.ng.InitOperations.
 initDispatcher(InitOperations.java:74)
 at org.apache.struts2.dispatcher.ng.filter.
 StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
 ApplicationFilterConfig.java:298)
 at org.apache.catalina.core.ApplicationFilterConfig.init
 (ApplicationFilterConfig.java:119)
 at org.apache.catalina.core.StandardContext.filterStart(
 StandardContext.java:4076)
 at org.apache.catalina.core.StandardContext.start(
 StandardContext.java:4730)
 at org.apache.catalina.startup.HostConfig.checkResources(
 HostConfig.java:1284)
 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(
 HostConfig.java:306)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
 LifecycleSupport.java:142)
 at org.apache.catalina.core.ContainerBase.backgroundProcess(
 ContainerBase.java:1389)
 at org.apache.catalina.core.ContainerBase$
 ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
 at org.apache.catalina.core.ContainerBase$
 ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
 at org.apache.catalina.core.ContainerBase$
 ContainerBackgroundProcessor.run(ContainerBase.java:1642)
 at java.lang.Thread.run(Thread.java:662)

 Thanks a lot!
 Emi


 -
 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


  1   2   3   4   5   6   7   8   9   10   >