Actually, the src attribute does not begin with a / and the page is loading properly. Here's the final code:
struts-config.xml <action path="/med.cp.logonServlet" type="org.apache.struts.actions.ForwardAction" parameter="/servlet/com.med.servlet.cp.LogonServlet" /> Html: <frame name="main" src="med.cp.logonServlet.do?targetAction=displayLogonPage" scrolling="auto" marginwidth="0" noresize marginheight="0"> -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Tuesday, July 19, 2005 4:44 PM To: user@struts.apache.org Subject: Re: how forward to servlets? Dave Newton wrote: > Laurie Harper wrote: >> <action >> path="/somepath" >> type="org.apache.struts.actions.ForwardAction" >> parameter="/servlet/com.med.servlet.cp.LogonServlet"/> >> >> You would simply change the type and/or value attributes as >> appropriate once you'd migrated your servlet functionality to a >> Struts action. Your JSPs, etc. would continue to reference /somepath >> without change. > > Would this work for the original example, which was using the path as > the source of a frame? > > <frame name="main" src="logonServlet.do&targetAction=displayLogonPage" > scrolling="auto" marginwidth="0" noresize marginheight="0"> > > (where the src attribute was the action path)? > > I guess if that path wasn't mapped anywhere else it would. I was > thrown off by the original "forward" terminology. Yes, it would work, although the src attribute should contain '/logonServlet.do' no 'logonServlet.do'. That's assuming that ActionServlet is mapped to '*.do' of course. L. -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/laurie --------------------------------------------------------------------- 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]