Howdy, With tomcat 5 you can use a servlet as an index page, i.e. a welcome-file in web.xml. Don't use /servlet as part of the URL unless you have to, as that just gives hackers a clue.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 31, 2003 1:57 PM >To: Tomcat User List >Subject: URL path naming question, recommended naming conventions? > >I'm developing an application that uses servlets and JSP. Currently, it is >using a Model View Controller type setup where everything is going through >a >single servlet (I'm not using Struts) which forwards to JSPs that are >located in WEB-INF. > >The path to my application is, > >https://myserver/myapp/servlet/controller > >But, I have an index.jsp which uses the JSTL <c:redirect> tag to redirect >so >that you can access the application using, > >https://myserver/myapp > > >1. Is using an index.jsp with a redirect is something that is commonly done >to simplify the URL? Or, is there a better way? >2. If you do use a redirect, what's the easiest way to do this so that if a >query string is provided, it is preserved? >2. Is it still recommended to use "/servlet/" as part of the path for >servlets? Or, do most people not do this anymore? > >BTW, I'm using a <c:redirect> and not a <c:forward> because the application >is password protected and I wasn't sure how to protect it if I did a >forward. > >Jon > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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]