| 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.
|
 |
 |
|
|
subject: Accessing files external to the WAR
|
|
|