Thanks for your example. It helped me realize that when I edited my path so that it was relative to the context path of my app, instead of cutting and pasting everything after the domain, everything worked just fine.
- Dave Paweł Wielgus wrote: > > Hi Dave, > i have almost the same code and it works, > > ActionForward forward = new > ActionForward("/remoteAccess.do?server=irqpa&entry=potentialCost" > + "&idExtraCostType=" + ExtraCostType.MEDICAL_TEST.getOrdinal()); > return forward; > > But i also have such one: > ActionForward forward = new ActionForward(); > > forward.setPath("/temp/representative/request/"+representativeForm.getActionTarget()+"/view.do"); > forward.setContextRelative(originalForward.getContextRelative()); > forward.setName(originalForward.getName()); > forward.setRedirect(originalForward.getRedirect()); > return forward; > > But i use some ancient s1 version. > > So firstly You can try without URLEncoder.encode(appName), > then you can add printing constructed string and pasting it into browser, > maybe some typo? > > Best greetings, > Paweł Wielgus. > > > 2008/12/15 laredotornado <laredotorn...@gmail.com>: >> >> Hi, >> >> I'm using Struts 1 and trying to figure out the mysterious world of >> forwarding. I have >> >> String path = new >> String("/npsim/appGroupsAdmin.do?addAppGroup=Add+New+Group&submitted=submit&task=add&appName=" >> + URLEncoder.encode(appName)); >> return new ActionForward(path); >> >> but when this code is invoked, I get the error "Invalid path was >> requested". >> I can cut and paste the above (substituting in the appropriate variable >> for >> "appName") and it will come up in my browser. What am I doing wrong >> here? >> >> Thanks, - Dave >> -- >> View this message in context: >> http://www.nabble.com/Invalid-path-was-requested-tp21020377p21020377.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > -- View this message in context: http://www.nabble.com/Invalid-path-was-requested-tp21020377p21043835.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org