Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing files external to the WAR

 
Chethan C Gowda
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use <c:url> tag.It can access file even on different server
 
Chethan C Gowda
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic