post your comment   print   send to a friend
Rate:  59% | Views: 671
Question categories:  Shared Hosting

Where is the /html directory relative to the java File objects root? I need to write a File from a servlet to a subdirectory of my html web root.

Answer by: Curtis Vize, Aplus.Net Knowledge Base Support

The directory your Java servlets must run from is:  /html/WEB-INF/classes

You may directly reference the file as:

/html/subdirectory/servlet-write-file

Or

../../subdirectory/servlet-write-file

Both paths accomplish the same duty, the latter backs out of the WEB-INF/classes subdirectories using the ../ directory command.

Customer Feedback
Rate:  59% | Views: 671 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Domain Registration | Ecommerce Web Design    Back to serch results
Browse the Base
Knowledge Base
Shared Hosting
  Legacy Hosting Plans
  Unix Plans
  NT Plans
  Email
  SSL
  Fiberia
Messages
Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What does the Archive Manager tool do?
 
2. How can I archive a directory from my web-hosting?
 
3. What is the use of the File Manager tool?
 
4. What is the meaning of Owner, Group and Everyone in the permissions panel?
 
5. How to Redirect URL?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest