Re: Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
Hi Wes, I am using Struts 2.0.11.2. I tried it using redirectAction, but I am still receiving the same error. Kelly Wes Wannemacher wrote: > > 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

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
Hi Brice, I tried that, I still am receiving a [Fatal Error] Premature end of file error, and the licenseRequest parameter is not being set. Any ideas as to why this wouldn't work? Thanks! Kelly brice.roncace wrote: > > Using the named parameter (parameters) that Struts2 places on the OGNL

Re: Struts2 redirect-action with post params

2009-06-25 Thread brice . roncace
Using the named parameter (parameters) that Struts2 places on the OGNL stack should work for you: submitXmlLicenseRequest ${#parameters.licenseRequest} Brice On Jun 25, 2009 11:36am, "Kelly.Graus" wrote: Hello, I am trying to redirect to an action when the default index page is

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

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

2007-10-29 Thread Andvar Woo
I tested the code again and found the tomcat console print error msg below,even i commented the codes that do the upload. 2007-10-30 15:59:02,015 [ org.apache.struts2.dispatcher.multipart.MultiPartRequest]-[ERROR] org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request

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

2007-10-29 Thread Andvar Woo
Thanks for Julien and Dave's reply. To Julien:I've try the method you suggust,it didnot work either. To Dave: the "id" attribute included in the form upload post via a hidden form field 2007/10/26, Dave Newton <[EMAIL PROTECTED]>: > > Is the "id" attribute included in the form upload post via a hi

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 redirect-action params with ognl-ex

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. Recently,I'v encount