facebook

Parsing an external XML file with a web app on Tomcat

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240690 Reply

    bradm
    Member

    I have a web app deployed to Tomcat 5.5 with a class that needs to read some parameters from an xml file. I’m using JDOM to parse the xml. The only way I can actually read the file is if I place it in the bin directory along with the Tomcat.exe and simply refer to the file by its name (“params.xml”). I know that’s a ridiculous location for it, but everywhere else I place it I get a “File not found” error.

    Where should I place this xml file in the directory structure of a bread and butter web app, and how should I refer to that location in my code when I’m reading its parameters in?

    #240804 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Parsing an external XML file with a web app on Tomcat

You must be logged in to post in the forum log in