You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paridhi Bansal <pa...@mail.com> on 2003/06/14 20:05:05 UTC

gif image not appearing

Hi!!!!!!

I have a web-based application that uses servlets and throws an applet to the client side..I am using tomcat4.0.6 standalone server..First an html page is displayed on the browser. On clicking the link, the servlet is invoked that throws the applet and jar file to the client. The applet has a JTable and a gif image.The table displays the data pushed by servlet..however, the gif image is not appearing..though it shows the correct path on right clicking, but it's not displayeed. If i include this gif image  on the first html page, it appears on the applet but then the data in the table is not displayed..

My directory structure is :
i have folders test and images inside the webapps directory.the servlet is inside test/WEB-INF/classes and the gif image is inside images folder..i have also kept the image inside the jar file...

What can be the problem??Any help will be appreciated...

Paridhi
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: gif image not appearing

Posted by Jason Bainbridge <ja...@jblinux.org>.
On Sun, 15 Jun 2003 02:05, Paridhi Bansal wrote:
> My directory structure is :
> i have folders test and images inside the webapps directory.the servlet is
> inside test/WEB-INF/classes and the gif image is inside images folder..i
> have also kept the image inside the jar file...

Are you using the servlet invoker ie. is your path to your sevlet something 
like: http://localhost:8080/webapp/servlet/servletname ? If so I'd say you 
have your relative path to images wrong as it needs to be ../images or even 
better put your servlet in a package and then map to it within your web.xml.

If this isn't the problem can you post relevant snippets of code?

Regards,
-- 
Jason Bainbridge
http://jblinux.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org