My Question is that i am using <image> tag in my servlet and
after compilation after that calling by url in my browser
then images are not showing. Sometime images are showing and
sometime is not showing. I am using Tomcat to run my
servlets.
Tell me if there any specification for image in servlets or
what is solution for this ??

Answer Posted / shailendra

because it will take http path not take directory path if
you gave <img
src="http://localhost:8080/UploadExample/upload...> like
that image will definity show.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to have a constructor inside the servlet?

731


Which method is called when reference variable is passed in system.net?

2047


What is servlet interface?

932


What are the types of an http request?

798


When servlet is loaded?

784


What is Request Dispatcher?

1052


What is difference between cookies and httpsession?

759


What are the two important api's in for servlets?

791


Differentiate between the get and post method

776


What is the difference between genericservlet and httpservlet

753


How do servlets work?

755


What are the annotations used in servlet 3?

749


What are the phases of servlet life cycle?

799


Explain in brief the directory structure of a web application?

779


What is the major difference between servlet and applet?

735