This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
but i need to redirect to my application just by using http://localhost:8080/ .as soon as the user enters this i want to redirect him to login.jsp
You must change <context-root> config in web.xml in each application.
IF your server is tomcat 5.XXX ,So, it will generate some xml in /conf/Catalina/<host-name>/yourapp.xml
Java Developer, Thailand
Joined: Sep 21, 2003
The way u told is right but there is one problem coming up .i am having my web apllication in webapps and there will be no entry in catalina/localhost folder for that application.If i create one in that folder ..whats happening is that application is getting loaded twice ....as a result of that my init servlet is getting executed twice leading to some corruption of data in my application
How shall i go about that ?? Any idea on this would be apprecable
Joined: Jul 04, 2003
Step in Create My web application in Tomcat
1. Create WAR file for deploy : mywebapp.war 2. Deploy to Tomcat : Use Tomcat Manager for Deploy war file 3. After deployed completed, Tomcat MUST be create /conf/Catalina/<hostname>/mywebapp.xml 4. Change config in mywebapp.xml follow me .
and may be conflict with ROOT.xml so change patn in ROOT.xml in another name ..
[ September 13, 2004: Message edited by: Somkiat Puisungnoen ] [ September 13, 2004: Message edited by: Somkiat Puisungnoen ]