how to change the root directory

Reply

Join Date: Aug 2008
Posts: 56
Reputation: love_dude1984 is an unknown quantity at this point 
Solved Threads: 2
love_dude1984 love_dude1984 is online now Online
Junior Poster in Training

how to change the root directory

 
0
  #1
Aug 12th, 2008
hi every1..

im just starting with JSP..i run the jsp pages on a single machine using localhost:8080/examples/jsp/my pages...but what if i want to store my pages into some other directory n wish to access them then how can i do tht??is there any file wher ive to change the path or wht..

2) im using tomcat version 5.x..when i used version 4.x i used to get a command prompt when i used to start a tomcat server.but in 5.x it doesnt appear..when i used to check for my code like System.out.println("test statements"); it used to appear in the command prompt,...how can i test this in 5.x??

hoping to get a reply soon..

thanks..
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,185
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: how to change the root directory

 
0
  #2
Aug 12th, 2008
In your installation of Tomcat under TOMCAT_HOME_DIRECTORY/webapps you can create new folders for your projects. Just don't forget to create WEB-INF folder with web.xml document. More on directory structure here
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 56
Reputation: love_dude1984 is an unknown quantity at this point 
Solved Threads: 2
love_dude1984 love_dude1984 is online now Online
Junior Poster in Training

Re: how to change the root directory

 
0
  #3
Aug 13th, 2008
ya thts ok..
but is it possible to change the root directory??? like if ive to store my files on a " c:\ " itself n want to access it from there only..is it possible??? how it can be done??
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,185
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: how to change the root directory

 
0
  #4
Aug 13th, 2008
I think it is possible to do, but in the 30 min search I was not able to find clear instructions, just hints on editing servlet.xml with some "context"
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC