• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Include File outside the WAR file

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, how i include a file outside the war file,
i tried this in the web.xml but the eclipse acuses a error,
<path-mapping url-pattern='/var/*'
real-path='/var/*'>

pageContext.include("../../"+habilitationConfirm.getCondSaleName());

this generates a error and if i put

pageContext.include("../"+habilitationConfirm.getCondSaleName());
it comes back to /home....
i can't reach the /... to do /alinkoutsidethewarfile
[ June 14, 2005: Message edited by: Dalmo Costa ]
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We too once wanted to include an XML file outside the war file, but couldnt succeed till the end.
 
Dalmo Costa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Senthil B Kumar:
We too once wanted to include an XML file outside the war file, but couldnt succeed till the end.



Hi Senthil,
what was the solution you made to this???
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We had a Properties file inside the war file which holded the path of the XML property file. And we had to place the XML property file over there in server.

The server first loads the path from the property text file within the war file and from that path, it reads the XML file.

Yeah..!! its redundancy of having two files and if we miss packaging the XML file to the destination, it would lead to errors, but we didnt have any solution.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic