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 |
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What is http servlet?
When servlet is loaded?
Define the lifecycle for executing a jsp page.
Explain mvc pattern.
How can I send user authentication information while making URL Connection?
What is servlet and its life cycle?
Explain the different ways for servlet authentication?
What if we pass negative value in load-on-startup?
What are the classes and interfaces for servlets?
What are advantages of servlets over cgi?
Does servlet have main method?