I had a similar problem that I solved by removing the <html:base/> tag. It seems like you need to take a look in that direction.
> -----Original Message----- > From: Pani, Gourav [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 16, 2003 10:47 AM > To: '[EMAIL PROTECTED]' > Subject: Specifying Application Root in links > > > I am using Struts 1.1 with Resin 2.1.5 and have encountered > the following > problem. > > Whenever I try to link to an action mapping specified in my > struts-config.xml file within a JSP, I have to specify the > application root > in the path. > > For example, the following is my setup in struts-config.xml. > > <action path="/Catalog" name="Catalog" > type="com.brightpoint.online.control.CatalogListAction" > scope="request" > validate="false"> > <forward name="show_catalog" path="/jsp/catalog/catalog.jsp" /> > </action> > > > The following is my setup in web.xml. > > <!-- Struts Configuration Load Servlet --> > <servlet servlet-name='action' > servlet-class='org.apache.struts.action.ActionServlet'> > <init-param config='/WEB-INF/struts-config.xml'/> > <init-param application='ApplicationResources'/> > <init-param debug='2'/> > <init-param detail='0'/> > <init-param validate='true'/> > <load-on-startup>2</load-on-startup> > </servlet> > > <servlet-mapping servlet-name='action' url-pattern='/*.do'/> > > > > However, in my JSP I have to link in the following manner. > "bpo" is the > application root as determined by the war file. > > <html:link href="/bpo/Catalog.do">Click Here to get to > Catalog</html:link> > > I would instead like to be able to do the following > > <html:link href="/Catalog.do">Click Here to get to Catalog</html:link> > > The same goes for recognizing the /images directory under the > application > root. I would rather keep it in my war file build than let > Apache control > image display. > > I think this is a simple configuration issue and possibly a > novice mistake. > Could someone help me out with this. > > Thanks in advance. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>