Hi, You're making a number of errors. The invoker servlet and the default servlet are not the same: the latter processes images and static content.
path="app" should be path="/app" if you specify it at all. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Goyal, Ritu (Ritu) [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 08, 2004 12:15 PM >To: [EMAIL PROTECTED] >Subject: Issue with one level for url and images loading > >Hello, > > > >Our team has been trying to resolve this issue for a while now, with no >results. We are trying to keep our url short, i.e. only up to one level. > >e.g. http://localhost:8080/app > >We don't want the url to have the following formats > >http://localhost:8080/app/servlet/app > > > >We did manage to get to one level, but then are images don't load at >all. The images directory is under C:\jakarta-tomcat-4.1.27\webapps\app. > >To access an image we do the following in our velocity templates. > ><img src="images/logo-smaller.gif" width="123" height="44"> > > > >Our web.xml file has the following data. > > > ><!-- ==================== Servlet Configuration ======================== >--> > > <servlet> > > <servlet-name> > > app > > </servlet-name> > > > > <servlet-class> > > <!-- Must use this class if using Turbine (at least for >Turbine 2.1) --> > > org.apache.turbine.Turbine > > </servlet-class> > > > > <init-param> > > <param-name>properties</param-name> > > > > <!-- This is relative to the docBase --> > > <param-value> > > /WEB-INF/conf/TurbineResources.properties > > </param-value> > > </init-param> > > > > </servlet> > > > > <!-- ==================== Mapping Configuration >======================== --> > > <!-- Explicity allow the servlet to prevent invoker exploits --> > > > > <servlet-mapping> > > <servlet-name>app</servlet-name> > > <url-pattern>/*</url-pattern> > > </servlet-mapping> > > > >We have tried almost everything, and can't get this to work. The images >work fine the minute we get our url to be >http://localhost:8080/app/servlet/app. > >Is there a way around this? We also tried using Context in server.xml >and that did not work either. > > > ><Context path="app" docBase="/" debug="0" > > reloadable="true" crossContext="true"> > > > ></Context> > > > >Will appreciate any help!! > >Ritu.. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
