AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

relative path

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.api
View previous topic :: View next topic  
Author Message
Hasan Babu H
Guest





PostPosted: Wed Jul 07, 2004 5:32 am    Post subject: relative path Reply with quote



I too do have the same problem. My bean updates a log file which is
accessed by an absolute path. "C:Apache SoftwareTomcat
5webappsmyApplog.txt". But due to this it's difficult for me to
port my application to a different machine. Each time i have to edit
the java file and recompile.

Is there any way to find the current filepath at run time. This
would solve many of my tomcat problems.

Hasan Babu H
Back to top
Madhan
Guest





PostPosted: Wed Jul 21, 2004 8:05 pm    Post subject: Re: relative path Reply with quote



Asad:
I hope you deploy the JSPs in either web or app server. These servers
have a root directory. I think '/' inside the JSP always refer to this
root directory and you dont need to mention WEB-INF. It is
automatically identified by the server. So try to remove that and run
again.
Hope this might help.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.api All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.