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 ??
Answers were Sorted based on User's Feedback
Answer / 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 |
Why do you use session tracking in httpservlet?
What is servlet instance?
Explain the different ways for servlet authentication?
What are the methods in HttpServlet?
Can you send the mail from a servlet ,if yes tell how?
Why do we use sendredirect() method?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is the main purpose of java servlets?
What do you mean by session tracking?
Can we call destroy() method inside the init() method? What happens when we do so?
what is meant by servlet to servlet communication?
what is the difference between do get/dopost