This might be a bit obvious, but ActionMapping.getInput() returns java.lang.String and your action needs to return an org.apache.struts.action.ActionForward. Did you mean "return new ActionForward(mapping.getInput());" instead?
> -----Original Message----- > From: Pani Ramasami [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 10:55 AM > To: Struts Users Mailing List > Subject: RE: return (mapping.getInputForward()); - not working > > > John, > > > -- > > On Tue, 18 Feb 2003 19:56:43 > John Espey wrote: > >Pani, > >Can you copy your action mapping configuration (if your > input is an action > >can you copy that one too? > > Here it is: > > <action path="/reportGen" > type="com.g1.interactive.webapp.ReportGenAction" > name="ReportGenerateForm" > scope="session" > input="reportDoc.jsp"> // i tried removing .jsp too > <forward name="success" path="/reportResultDoc.jsp"/> > <forward name="failure" path="/reportDoc.jsp"/> > </action> > > forward failure is something which i added later so that i > can avoid using > return (mapping.getInputForward()); > now, 'am using > return (mapping.getActionForward("failure"); > it seem to work. but, just wondering is the later one is the > right way to do? or the first one? > > > Thanks, > -Pani. > > > > >> -----Original Message----- > >> From: Becky Norum [mailto:[EMAIL PROTECTED]] > >> Sent: Tuesday, February 18, 2003 7:37 PM > >> To: [EMAIL PROTECTED] > >> Cc: [EMAIL PROTECTED] > >> Subject: Re: return (mapping.getInputForward()); - not working > >> > >> > >> Pani, > >> > >> You have to specify the forward name parameter, if you haven't. > >> > >> For example, if in struts-config.xml your forward is: > >> <forward name="success" path="/home.jsp" /> > >> > >> you have to use the following in your Action class: > >> return (mapping.getActionForward("success"); > >> > >> Best of luck, > >> > >> Becky > >> > >> -- > >> Becky Norum <[EMAIL PROTECTED]> > >> > >> On Tue, 2003-02-18 at 19:23, Pani Ramasami wrote: > >> > Hi: > >> > > >> > The below line: > >> > > >> > return (mapping.getInputForward()); // (in the ActionClass) > >> > > >> > is not taking me back to the form specified in the input > >> attribute of stuts-config.xml > >> > > >> > Iam using <html:errors/> in my jsp to display the action errors > >> (if any). > >> > > >> > Any advise wud be greatly appreciated. > >> > > >> > -Pani. > >> > > >> > > >> > > >> > _____________________________________________________________ > >> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for > $19.95/year. > >> > > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus > >> > > >> > > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: > [EMAIL PROTECTED] > >> > For additional commands, e-mail: > [EMAIL PROTECTED] > >> > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: > [EMAIL PROTECTED] > >> > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > _____________________________________________________________ > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

