Re: Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
Wes > > > -- > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > > -- View this message in context: http://www.nabble.com/St

Re: Struts2 redirect-action with post params

2009-06-25 Thread Wes Wannemacher
On Thu, Jun 25, 2009 at 1:36 PM, Kelly.Graus wrote: > > > This is the redirect action. it redirects to the action, but the post > parameter isn't set. > > type="redirect-action">submitXmlLicenseRequest > > > Which version of struts are you using, redirect-action was renamed to redirectA

Re: Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
on the OGNL > stack should work for you: > > > > submitXmlLicenseRequest > ${#parameters.licenseRequest} > > > > Brice > -- View this message in context: http://www.nabble.com/Struts2-redirect-action-with-post-params-tp24207810p24208402.html Sent fr

Re: Struts2 redirect-action with post params

2009-06-25 Thread brice . roncace
censeRequest=${licenseRequest} type="redirect-action">submitXmlLicenseRequest?licenseRequest=${Parameters.licenseRequest} submitXmlLicenseRequest ${licenseRequest} submitXmlLicenseRequest ${Parameters.licenseRequest} Thanks for any suggestions

Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
submitXmlLicenseRequest ${licenseRequest} submitXmlLicenseRequest ${Parameters.licenseRequest} Thanks for any suggestions! Kelly -- View this message in context: http://www.nabble.com/Struts2-redirect-act

Re: struts2 redirect action

2008-01-15 Thread Brian Relph
Thank you so much for you help. Yes, we do want the other action to execute before reaching the jsp ... as i was refactoring the code, i read your next response, and yes, the "chain" result is exactly the fix for me. I think action chaining is in general frowned on, but for my initial login, i th

Re: struts2 redirect action

2008-01-15 Thread Nils-Helge Garli Hegvik
I just realized that the proposed solution won't do what you want it to do either, since you obviously want the other action to run before the jsps are dispatched... So, you either have to re-structure your code a bit and invoke the other actions directly (either manually or by specifying it as the

Re: struts2 redirect action

2008-01-15 Thread Nils-Helge Garli Hegvik
I think I have figured out the problem. The problem is that "redirectAction" doesn't really do what you think it does, not when used in the render phase. I should probably implement a check for this, as you can't do a sendRedirect in a portlet. "redirectAction" in a portlet should only be used afte

Re: struts2 redirect action

2008-01-15 Thread Brian Relph
I have debugged through my own code, but not too deeply through the struts2 code. I did notice when running it with struts 2.0.11, that there was a warning that the actionMapper property of the PortletActionRedirectResult was not set b/c the bean could not be found. Would something in the web.xml

Re: struts2 redirect action

2008-01-15 Thread Nils-Helge Garli Hegvik
Hm I usually experience this behaviour when the JSPs aren't found... Other than that, redirectAction runs just fine in my sample applications. Have you tried launching in debug mode and step through the code? Can you show your portlet.xml file? Nils-H On Jan 15, 2008 7:58 PM, Brian Relph <[EM

Re: struts2 redirect action

2008-01-15 Thread Brian Relph
My WEB-INF/index.jsp is used so that i can use the same installation as both a portlet and a servlet. Websphere comes with an embedded portlet container as well as a servlet that can serve portlets as servlets, so i can install my webapp a single time and have it accessible both in and out of my p

Re: struts2 redirect action

2008-01-15 Thread Nils-Helge Garli Hegvik
Are you running this in a portlet container? Your index.jsp and the redirect url does not make sense i a portal server (unless you are embedding it in some way)? Please provide some more information. Nils-H On Jan 15, 2008 6:38 PM, Brian Relph <[EMAIL PROTECTED]> wrote: > I am having trouble

struts2 redirect action

2008-01-15 Thread Brian Relph
I am having trouble getting a redirectAction to work. I am using struts2-portlet-plugin-2.1.1-SNAPSHOT, i have also tried using struts-2.0.11with no luck. Any advice? Here are my configs: WEB-INF/index.jsp <% String redirectURL = "view/index.action"; response.sendRe

Struts2 redirect action result type and URI query string

2007-12-20 Thread Filipe David Manana
Hi, I want to do a redirection to an action based on the result name of some other action. The problem is that I want to pass a number of parameters that I don't know in advance how many they are (neither their values). I have only a query string available (like ?p1=v1&p2=v2&ord=1 ...). I have the

Re: Struts2 redirect-action params with ognl-expression values

2007-10-29 Thread Andvar Woo
> > To: Struts Users Mailing List < user@struts.apache.org > > > > Sent: Friday, October 26, 2007 6:17:22 AM > > > Subject: Struts2 redirect-action params with ognl-expression values > > > > > > Hi.all. > > > Recently,I'v encounter a proble

Re: Struts2 redirect-action params with ognl-expression values

2007-10-29 Thread Andvar Woo
ute included in the form upload post via a hidden form > field or other means? > > d. > > - Original Message > > From: Andvar Woo <[EMAIL PROTECTED]> > > To: Struts Users Mailing List > > Sent: Friday, October 26, 2007 6:17:22 AM > > Subject: Stru

Re: Struts2 redirect-action params with ognl-expression values

2007-10-26 Thread Dave Newton
Is the "id" attribute included in the form upload post via a hidden form field or other means? d. - Original Message > From: Andvar Woo <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Friday, October 26, 2007 6:17:22 AM > Subject: Struts2 redi

RE: Struts2 redirect-action params with ognl-expression values

2007-10-26 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Did you try this ? ModNews ${id} Julien -Message d'origine- De : Andvar Woo [mailto:[EMAIL PROTECTED] Envoyé : vendredi 26 octobre 2007 12:17 À : Struts Users Mailing List Objet : Struts2 redirect-action params with ognl-expression values Hi.all. Recentl

Struts2 redirect-action params with ognl-expression values

2007-10-26 Thread Andvar Woo
Hi.all. Recently,I'v encounter a problem. The problem comes as follows: *First invoke a MdfNews Action with a news id param to init some variables,then goes* *to a newsModify.jsp page ,something like http://www.comanyName.com/news/MdfNews.action?id=123* /WEB-INF/template/newsinfo/newsModify.j