WAR Deployment(Sun One Appserver 7)- Images not loading

Discussions

Web tier: servlets, JSP, Web frameworks: WAR Deployment(Sun One Appserver 7)- Images not loading

  1. WAR Deployment(Sun One Appserver 7)- Images not loading (1 messages)

    Hi,
           Have developed a web appln which is being deployed in Sun One App Server 7. And while deploying I gave the context-root as /Test and I'm invoking the login jsp page using a Controller servlet. The issue is the images are not loading when the page loads. Should there be any entry be made in the web.xml for images alone ? below is the entry from the server.xml.

      <applications dynamic-reload-enabled="false" dynamic-reload-poll-interval-in-seconds="2">
        <web-module enabled="true" location="C:\Sun9\jstudio\AppServer7\domains\domain1\server2\applications\j2ee-modules\project_2" name="project" context-root="/Test"/>
      </applications>

    Can anybody pls help ? I'm stuck...

    Thanks,
    -GR
  2. What do the <img> src entries look like. Remember that you can't directly call any files that are under the WEB-INF directory.