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
Is it possible to have a constructor inside the servlet?
Which method is called when reference variable is passed in system.net?
What is servlet interface?
What are the types of an http request?
When servlet is loaded?
What is Request Dispatcher?
What is difference between cookies and httpsession?
What are the two important api's in for servlets?
Differentiate between the get and post method
What is the difference between genericservlet and httpservlet
How do servlets work?
What are the annotations used in servlet 3?
What are the phases of servlet life cycle?
Explain in brief the directory structure of a web application?
What is the major difference between servlet and applet?