| Author |
how to map dynamic web project name to root directory
|
Alex Roskin
Greenhorn
Joined: Mar 24, 2011
Posts: 8
|
|
Hello,
I would like to be able to make the site come up under localhost instead of localhost/defaultsite/
Thank you,
Alex
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
|
What container?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Alex Roskin
Greenhorn
Joined: Mar 24, 2011
Posts: 8
|
|
|
This is for a dynamic web project in Eclipse that is being exported as WAR and deployed on Tomcat.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
|
Such questions should be posed in the IDEs forum. I have moved this there for you.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8436
|
|
|
With the sysdeo plugin you don't even need to build deploy!!!
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Alex Roskin
Greenhorn
Joined: Mar 24, 2011
Posts: 8
|
|
|
I prefer not to use additional plug ins, from my understanding wither web.xml or server.xml file needs to be updated, but not sure with what?
|
 |
Stefan Evans
Bartender
Joined: Jul 06, 2005
Posts: 1005
|
|
Actually I would think this would be a Tomcat question, as the method of using the 'default' directory with a deployment is dependant on which server you are using.
The relevant page in the Tomcat docs
For Tomcat I think the best approach is to add a context.xml file to the META-INF directory of your war file.
Within this file you define the context, and give it a path="".
|
 |
 |
|
|
subject: how to map dynamic web project name to root directory
|
|
|