Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing the files not stored in tomcat directory

 
dinesh Venkatesan
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I want to access the files not stored inside the tomcat folders. (stored in my hard disk D:/) through the URL.

I have done the same few months back using <Context> element but I am not able to recollect the exact procedure now. Can anybody help me?

Thanks and Regards,
Dinesh Venkatesan.
[ June 24, 2008: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The docBase attribute of Context allows you to deploy an application that isn't in the Tomcat directory structure.

This page from the Tomcat documentation should help:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
[ June 19, 2008: Message edited by: Ben Souther ]
 
Zemian Deng
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Access like reading a file?

There is nothing stopping you from creating
inside a servlet.
 
dinesh Venkatesan
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the replies. However, I am not looking for reading some physical files using Input Streams. I am working around the <context> tag but not able to achieve the results. I am trying it out.

Thanks again.

Thanks and Regards,
Dinesh Venkatesan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic