Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I am a JSP/Servlet developer. I am new to Linux server environment. I am experiencing a problem with Image Path reference in Linux server. My application (myapp.war) is running ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    1

    Image Path reference problem (Absolute path) in Linux


    Hi

    I am a JSP/Servlet developer.
    I am new to Linux server environment.
    I am experiencing a problem with Image Path reference in Linux server.

    My application (myapp.war) is running in Linux in the following path:
    /opt/jboss-3.2.6/server/default/deploy/myapp.war
    The myapp.war is having the html,xml,jsp and servlet files.

    I stored the images in a different location. The reason is, the images can be frequently changed.
    /var/myapp_images/ABC/image1.gif

    I want to refer the above image in the <IMG> tag of the html file.

    If I give the <IMG> tag like below, the jboss servlet context is taking effect, i.e., the /opt/jboss-3.2.6/server/default/deploy folder.

    <IMG src = "/var/myapp_images/ABC/image1.gif">

    The image is not loaded from the particular location. It shows an empty area with red color x mark.

    But, the browser shows the address of the image as http://120.234.14.202:8080/var/myapp...ABC/image1.gif.
    Image Type : Not available.
    Image Size : Not available.

    How can I refer the image which is in a different location?

    My Operating System is : Windows 2000.
    JBOSS3.2.6 is running in : Linux server.
    I am testing the myapp application in my Windows 2000.

    I have given the absolute path reference for image. But it is not taking effect.
    Anything needs to be configured / altered?

    Please help me to fix this issue.

    Thanks,
    JavaBuddy.

  2. #2
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Is your Linux server configured to allow access to the alternative directory?

Posting Permissions

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