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
Can we override destroy method in servlet?
What are the different mode that servlets can be used?
What’s the difference between forward() and sendredirect() methods?
How can the session in servlet can be destroyed?
Difference between get and post in java servlets?
What do you mean by httpservlet and how it is different from the genericservlet?
Is servlet synchronized?
What is the difference between Servlets and Applets?
How can we refresh automatically when new data is entered into the database?
What do you mean by default initialization in java servlet?
What is context in servlet?
Can we fetch the attributes related to a servlet on a different servlet?
How native code can be used in a servlet?
How do we call one servlet from another servlet?
What is servlet looping or chaining?