struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
HI All, We have two pages and both of them have s:token tag and both of them use token interceptor. After I submit one form I need to display another form in another page. I am using redirectAction to redirect Before redirecting in the first action class I am setting token value into session.

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Christoph Nenning
HI All, We have two pages and both of them have s:token tag and both of them use token interceptor. After I submit one form I need to display another form in another page. I am using redirectAction to redirect Before redirecting in the first action class I am setting token value into

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
Hi Christoph, There are token checks while submitting the ist page and while displaying the 2nd page also. The real problem is that while redirecting token is getting cleared from request parameter. Is there anyway I can pass the token in the request parameter to the next action. On Tue, Jun

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Christoph Nenning
You can use OGNL in result config, like this: result name=showReportResult type=redirect-action param name=actionNamegenerateReport/param param name=struts.token.namefoo/param param name=foo${token}/param /result Regards, Christoph Hi Christoph,

Re: struts 2: Redirect action giving token issue

2014-06-17 Thread Arpan
Thanks a lot Christoph.. It was a very good hint. Ultimately I have added the token value into request attribute and then accessed it in the result param as follows : param name=struts.token.nametoken/param param name=token%{#request.token}/param On Tue, Jun 17, 2014 at 6:09 PM, Christoph

Re: Struts 2 - Dispatch Action

2009-05-10 Thread Marco Bakera
cm132005 schrieb am 06.05.2009 18:37: In Struts 1 dispatch action, a request parameter can be set either as a form attribute or as a request attribute from within any action class or through URL and the correct dispatch method in the action gets invoked. Is there a way to do this in Struts 2?

Re: Struts 2 - Dispatch Action

2009-05-10 Thread Dave Newton
Marco Bakera wrote: cm132005 schrieb am 06.05.2009 18:37: In Struts 1 dispatch action, a request parameter can be set either as a form attribute or as a request attribute from within any action class or through URL and the correct dispatch method in the action gets invoked. Is there a way

RE: Struts 2 - Dispatch Action

2009-05-10 Thread Martin Gainty
obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sun, 10 May 2009 08:16:04 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: Struts 2 - Dispatch Action

Struts 2 - Dispatch Action

2009-05-06 Thread cm132005
!dMethodName.do Thanks. -- View this message in context: http://www.nabble.com/Struts-2---Dispatch-Action-tp23410702p23410702.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Steven Yang
basically ActionSupport gives you some default implemented methods to make your life easier. if you dont need them you can simply implement Action But for Struts2 you dont even HAVE to implement the Action interface, as long as you have a method called execute or any named method that your

RE: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Martin Gainty
donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sun, 12 Apr 2009 22:11:09 +0800 Subject: Re: struts 2, implements Action / extend ActionSupport From: kenshin...@gmail.com To: user

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Dave Newton
john lee wrote: i am aware that in struts 2, when define an action, it could be public class XXX implement Action or public class XXX extends ActionSupport what is the difference b/w above two? in other words, in what kind of scenario, pick which one? If you want validation or

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Dave Newton
Martin Gainty wrote: assuming you are using Actions annotation to define multiple action methods within a single action class? @Action(/different/url) http://cwiki.apache.org/WW/convention-plugin.html How does this differentiate between implementing Action or extending ActionSupport?

struts 2, implements Action / extend ActionSupport

2009-04-11 Thread john lee
    i am aware that in struts 2, when define an action, it could be      public class XXX implement Action    or    public class XXX extends ActionSupport   what is the difference b/w above two? in other words, in what kind of scenario, pick which one?   tks in advance   john 

Re: Struts 2 In Action Sample Application

2009-02-03 Thread Wes Wannemacher
On Tuesday 03 February 2009 14:54:55 SanJ.SANJAY wrote: Has anyone faced this issue with Sample application?? SanJ.SANJAY wrote: Has anyone here tried and tested the Sample Application code that comes for this book Struts 2 In Action ? I am having hard time to fix it. Currently I am

Re: Struts 2 In Action Sample Application

2009-02-03 Thread SanJ.SANJAY
Application code that comes for this book Struts 2 In Action ? I am having hard time to fix it. Currently I am facing the issues in applicationContext.xml file. I have the following in my applicationContext.xml on the top - beans xmlns=http://www.springframework.org/schema/beans

Re: Struts 2 In Action Sample Application

2009-02-03 Thread Wes Wannemacher
On Tuesday 03 February 2009 15:11:06 SanJ.SANJAY wrote: Even if I use the top content form your applicationContext.xml in chapter 4, I get the same error..so wondering what else could eb the issue. Do you have multiple versions of Spring, or anything else that might attempt to parse XML in

Re: Struts 2 In Action Sample Application

2009-02-03 Thread SanJ.SANJAY
Has anyone faced this issue with Sample application?? SanJ.SANJAY wrote: Has anyone here tried and tested the Sample Application code that comes for this book Struts 2 In Action ? I am having hard time to fix it. Currently I am facing the issues in applicationContext.xml file

Re: Struts 2 In Action Sample Application

2009-02-03 Thread Wes Wannemacher
On Tuesday 03 February 2009 15:27:02 SanJ.SANJAY wrote: I actually do not have in WEB-INF/lib, I have all the jars in a shred lib and add them in Eclipse and build. This is how I do for other projects also. There is some sort of problem with the XML in parsing. I would try re-creating the

Re: Struts 2 In Action Sample Application

2009-02-03 Thread SanJ.SANJAY
...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts-2-In-Action-Sample-Application-tp21798278p21818169.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Struts 2 In Action Sample Application

2009-02-02 Thread SanJ.SANJAY
Has anyone here tried and tested the Sample Application code that comes for this book Struts 2 In Action ? I am having hard time to fix it. Currently I am facing the issues in applicationContext.xml file. This is the header for XML file that comes with sample application code ?xml version=1.0

Struts 2 in Action

2008-11-25 Thread stanlick
Hey all -- Not sure who is in the area, but I will be presenting Struts 2 at the St. Louis Gateway JUG next Tuesday evening (Dec 2). You can get directions to the meeting here: http://www.gatewayjug.org/ Peace, Scott -- View this message in context: http://www.nabble.com/Struts-2-in-Action

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Lyallex
:- There are decent forums at manning.com that might be a better place to put :- this note -- I know the authors read the forums there. Well I did try posting to the authors blog on the Manning site but the post was thrown out because of the XML ... I'm not one of the authors, but I helped...

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Dave Newton
--- On Sat, 7/12/08, Lyallex [EMAIL PROTECTED] wrote: Well I did try posting to the authors blog on the Manning site but the post was thrown out because of the XML... Using a service like pastebin, paste2, nopaste, etc. solves that problem, and can be a better alternative for long-ish snippets

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Don Brown
On Sat, Jul 12, 2008 at 5:56 PM, Lyallex [EMAIL PROTECTED] wrote: Wouldn't it be great to have the redirect resultType parameterised in some way so that the target could be set depending on which action was selected .. You can. Try something like this: action name=Login

For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Lyallex
I have no idea if the authors of the book Struts 2 in Action read this list or if anyone that does knows how to contact them but I have a question for them, or maybe someone else knows the answer Authors On page 99, chapter 4 of your book you state. Every action in this package will now have

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Jim Kiley
There are decent forums at manning.com that might be a better place to put this note -- I know the authors read the forums there. jk On Fri, Jul 11, 2008 at 11:59 AM, Lyallex [EMAIL PROTECTED] wrote: I have no idea if the authors of the book Struts 2 in Action read this list or if anyone

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Wes Wannemacher
of the book Struts 2 in Action read this list or if anyone that does knows how to contact them but I have a question for them, or maybe someone else knows the answer Authors On page 99, chapter 4 of your book you state. Every action in this package will now have authentication with automatic

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-11 Thread Paweł Wielgus
example seems to work for most apps. -Wes On Fri, Jul 11, 2008 at 11:59 AM, Lyallex [EMAIL PROTECTED] wrote: I have no idea if the authors of the book Struts 2 in Action read this list or if anyone that does knows how to contact them but I have a question for them, or maybe someone else

Struts 2 in action

2008-07-03 Thread bhaarat Sharma
Hi guys, Has anyone taken a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's suggestion. If you've browsed through the book, can you please provide some feedback. Thanks

Re: Struts 2 in action

2008-07-03 Thread Jim Kiley
I bought it not long after it came out and it's excellent. I hit it at least once a week, even now. The night I bought it, when I had good fiction to read, and good nerdy nonfiction to read, I chose to read *Struts 2 In Action* for fun instead. And I got something good out of doing so. I

RE: Struts 2 in action

2008-07-03 Thread Eric Hamacher
PROTECTED] Sent: Thursday, July 03, 2008 11:50 AM To: Struts Users Mailing List Subject: Struts 2 in action Hi guys, Has anyone taken a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's suggestion. If you've browsed through

Re: Struts 2 in action

2008-07-03 Thread Greg Lindholm
Yes, I highly recommend it, it's the top book on my desk right now. I've referenced it almost everyday since I read it. omnipresent wrote: Hi guys, Has anyone taken a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's

Re: Struts 2 in action

2008-07-03 Thread bhaarat Sharma
it. omnipresent wrote: Hi guys, Has anyone taken a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's suggestion. If you've browsed through the book, can you please provide some feedback. Thanks -- View

Re: Struts 2 in action

2008-07-03 Thread aum strut
a look at 'Struts 2 in action' from manning publications? I am thinking about buything this book and wanted someone's suggestion. If you've browsed through the book, can you please provide some feedback. Thanks -- View this message in context: http

[Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
. Is this possible to define in Struts 2? -- Thx, Milan -- View this message in context: http://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17824236.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic [EMAIL PROTECTED] wrote: I want to have two action classes, the first class called SearchAction will search from database and show results in a jsp page. When user click some row I want to pass that value (through a session) to another action class called

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17825719.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic [EMAIL PROTECTED] wrote: I want to read object from database in the first action class (i.e. Fruit fruit) to store it into session and then to call other action class method for editing of that method, is it possible ? Oh, I thought you said you were

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17826614.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes that's what I want. The first action search in database and show the list of Fruits. Then user click on one and that concrete Fruit object is passed to other action for editing. All you can pass in an HTTP request is a string.

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17827033.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Al Sutton
If you're using a persistence framework (Hibernate, JPA, etc.) then No. During after the first request the EntityManager will be closed, so when you access it during the second request updates will not be propagated to the database. Al. Milan Milanovic wrote: But could I pass object

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17827033.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Struts-2--Two-action

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17827033.html Sent from

[OT] Re: [JPA more than Struts 2] Two action classes ?

2008-06-13 Thread Al Sutton
Milan, Please read the EntityManager JavaDoc at http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html and http://www.oracle.com/technology/pub/articles/gupta-jpa.html You'll see these explain why you can't simply put the object into a session and keep using it. You

[Struts 2] Session Action / Form?

2008-06-06 Thread claym
Does Struts 2 support something similar to Spring MVC's session scope bean/form where the form input will live across multiple requests to the same (or even different) actions? If so, how does that work? -- View this message in context: http://www.nabble.com/-Struts-2--Session-Action---Form

Re: [Struts 2] Session Action / Form?

2008-06-06 Thread stanlick
requests to the same (or even different) actions? If so, how does that work? -- View this message in context: http://www.nabble.com/-Struts-2--Session-Action---Form--tp17700464p17700464.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Giovanni Azua
that would automatically become outdated but for Struts 2 in Action it is absolutely not the case. On the other hand, and as a trade-off you find no info about some plugins shipped with Struts 2 e.g. dojo but then maybe it was a bit out of scope. I think overall the scope of this book is excellent

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Frans Thamura
On Wed, Jun 4, 2008 at 2:58 PM, Giovanni Azua [EMAIL PROTECTED] wrote: I am very excited that I've just received my copy :) You guys Don, Scott and Chad did an excellent job. I specially like very much the coverage of core topics of the framework e.g. the explanation on writing custom

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread stanlick
but it was outdated for S2 ... today I have the book :) What I like the most though is that this is the first Struts 2 book that manages to be truly S2 version unspecific. I was afraid to receive just another S2 book that would automatically become outdated but for Struts 2 in Action it is absolutely

Re: [ANN] Struts 2 in Action now available

2008-06-04 Thread Giovanni Azua
[EMAIL PROTECTED] wrote: Thanks Giovanni -- It is nice to hear all the work is paying off for you! Would you be willing to post a review on Amazon? Sure thing! within the next 48 hours :) - To unsubscribe, e-mail: [EMAIL

[ANN] Struts 2 in Action now available

2008-05-24 Thread Don Brown
Chad, Scott, and I are pleased to announce the release of our book, Struts 2 in Action, published by Manning Publications. Struts 2 In Action introduces the Apache Struts 2 web application framework and shows you how to quickly develop professional, production-ready modern web applications.This

Re: [ANN] Struts 2 in Action now available

2008-05-24 Thread Wes Wannemacher
wrote: Chad, Scott, and I are pleased to announce the release of our book, Struts 2 in Action, published by Manning Publications. Struts 2 In Action introduces the Apache Struts 2 web application framework and shows you how to quickly develop professional, production-ready modern web

Re: [Struts 2] Video Action

2008-05-16 Thread Jeromy Evans
. But I faced the following problem: my tag object should recover within its attribute src a stream obtained from an action struts 2. If a recovery this flow is done smoothly in the event of a gif or jpeg image, the same action can not play the video in the drive (displaying a black screen on the player

[Struts 2] Video Action

2008-05-15 Thread Yousri BENDI ABDALLAH
: my tag object should recover within its attribute src a stream obtained from an action struts 2. If a recovery this flow is done smoothly in the event of a gif or jpeg image, the same action can not play the video in the drive (displaying a black screen on the player without the possibility

[S2] WebWork (Struts 2) In Action presentation by Patrick Lightbody

2007-04-27 Thread Ted Husted
Patrick Lightbody does an overview of WebWork and the Struts merger, comparing to other web frameworks and explaining validation support, Ajax support, and how to achieve rapid development with WebWork/Struts 2 * http://www.infoq.com/presentations/struts-2-webwork-pat-lightbody -Ted.