aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Accessing files external to the WAR Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Accessing files external to the WAR" Watch "Accessing files external to the WAR" New topic
Author

Accessing files external to the WAR

Chethan C Gowda
Greenhorn

Joined: Dec 06, 2007
Posts: 20
Hello All,

Can any one tell how to access the HTML files which are stored outside to the WAR...
I tried of giving complete absolute path but it is not working...


Thanks,
Chethan
raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
you can use <c:url> tag.It can access file even on different server
Chethan C Gowda
Greenhorn

Joined: Dec 06, 2007
Posts: 20
If i prefix the URL with "http://" then normal <a> tag will do the task.
Ex: <a href="http://javaranch.com"> Java Ranch </a> but if i give the complete absolute path like <a href="c:/html/help.html"> Help </a> this is not working. Web server is blocking the access to the documents which are external to the application.
Any suggestions how to do this, I want to open up the HTML file which is residing in the Local file system.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Accessing files external to the WAR
 
Similar Threads
Is it possible to deploy two wars in the same context?
how to merge war file and ear file?
WAR files
how to put my .war file into netbean IDE and make it run?
How to deploye