Hi, >BUT how can I get the user to go straight to >http://localhost:8080/testapp/jsp/overview.jsp >when they enter http://localhost:8080 >at the moment it just goes to the tomcat home page index.jsp
You need to make your webapp reside at context path "" (the empty string, not null and especially not "/") in the Tomcat configuration. That means you need to replace the ROOT webapp that ships with Tomcat with your application. To do so, remove webapps/ROOT, remove conf/Catalina/localhost/root.xml if it's present, and remove all contents of the work directory. Then add a testapp.xml file on conf/Catalina/localhost, containing a Context element like <Context path="" docBase="testapp" /> Also set autoDeploy="false" in the Host declaration in your conf/server.xml file. >and is there a way I can do without the user needing to specify the port >i.e http://localhost as other servers seem to do. Yes: run Tomcat on port 80. That is the default port for HTTP, the one used when no other port is specified. Tomcat runs on port 8080 by default. This can be changed by modifying the Connector declaration in your conf/server.xml file. Yoav 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]
