Thanks Chuck for you Mail! The reason why I'm asking is, because I'm using eclipse and its 'dynamic web project' structure. For me actually I don't really care if it's on top or in some 'WebContent' directory. I just didn't want to change the structure every time I want to run/deploy my application. I thought that Tomcat is by default so configured that the ROOT is mapped to 'WebContent' but somehow not in my case.
Tom -------- Original-Nachricht -------- > Datum: Sat, 13 Dec 2008 10:04:06 -0600 > Von: "Caldarale, Charles R" <chuck.caldar...@unisys.com> > An: Tomcat Users List <users@tomcat.apache.org> > Betreff: RE: Setting /WebContent as ROOT for an application > > From: Tom Blank [mailto:blank-...@gmx.net] > > Subject: Setting /WebContent as ROOT for an application > > > > For Example: > > http://localhost:8080/myApp/ > > > > should point to this directory: > > C:/Server/Tomcat/webapps/myApp/WebContent/ > > > > where my index.jsp is located. > > This is not a "property" setting - it's the way it's supposed to work. > The directory structure *you* choose for your webapp is reflected in the URLs > that must be used to access that webapp. > > 1) Why do you have a hierarchy here? Is there something in the myApp > directory other than WebContent? Does this directory structure serve any > purpose? > > 2) If you must maintain this hierarchy, move your index.jsp file to myApp > from myApp/WebContent. > > 3) If you can't collapse the directory structure or move the index.jsp > file, then put a dummy index.html file in myApp that redirects to the proper > one (or use a filter to do the same thing). > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org