Re: image not displayed
I have tried the suggestions but i am missing something The Hello.java is in /project/app2/src/mypackage Using 'ant install' the application is deployed with target name=install depends=compile deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} localWar=file://${build.home}/ /target Using 'ant list' i see that the context exists since one of the output lines is [list] /app2:running:0:/project/app2/build Starting the servlet by http:/localhost:8080/app2 shows the text output but NOT the image html img src=/app2/host.gif nor img src=host.gif (nor many other combinations of guesses) wereas i have verified that /project/app2/build/host.gif exists. Can someone tell me in what directory the host.gif should be located? Thanks for any help. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
image not displayed
Since i am new to Tomcat i installed tomcat 5 on a Suse 8.2 linux machine and tried to install the First Webapp Servlet example. I have placed all files in subdirectories of myapp, thus: myapp/src/mypackage/Hello.java, myapp/web/WEB-INF/web.xml myapp/web/image/tomcat.gif After ant install and starting a local browser, the text output is shown correctly but the image is not displayed. I cant figure out why the image isn't shown. Did i mis something in the web.xml? (see below) web-app display-nameMy Web Application/display-name descriptionThis is version X.X of an application./description servlet servlet-namemyapp/servlet-name display-nameDescription of mypackage servlet./display-name descriptionDescription of mypackage servlet./description servlet-classmypackage.Hello/servlet-class /servlet servlet-mapping servlet-namemyapp/servlet-name url-pattern//url-pattern /servlet-mapping /web-app Thanks for any help. Peter