Results 1 to 2 of 2
  1. #1
    Felissa is offline Member
    Join Date
    Jun 2007
    Posts
    95
    Rep Power
    0

    Default Specifying absolute path in web.xml

    I am creating a text file through my web Application which is on JBoss and I have to read this file in the JSP to print the out put.
    My problem is, the text file has been created in JBoss/bin, I want it to be created in my project folder.

    I can do this by specifying absolute path but I want to specify this path in my web.xml. which tags should I add to web.xml ?
    Thanks
    Felissa:p

  2. #2
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default

    If you want to define the directory in web.xml where you wish to store files etc....then you can use the following for that particular JSP file

    Java Code:
    <init-param>
    <param-name>save_dir</param-name>
    <param-value>/direcotry_path/</param-value>
    </init-param>
    that way, the directory is available (as long as it is referenced correctly) and you can call it for that particular servlet or JSP file when needed.

    Greetings
    Eric

Similar Threads

  1. trying to get class name & path
    By sandor in forum New To Java
    Replies: 4
    Last Post: 08-12-2008, 01:38 PM
  2. Specify path
    By borgrodrick in forum Eclipse
    Replies: 1
    Last Post: 02-12-2008, 11:03 PM
  3. Log4J.jar in class path
    By eva in forum New To Java
    Replies: 0
    Last Post: 01-02-2008, 06:39 PM
  4. Setting Java Path
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-22-2007, 09:48 AM
  5. problem with PATH
    By creativehacker in forum New To Java
    Replies: 4
    Last Post: 07-11-2007, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •