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



My Question is that i am using <image> tag in my servlet and after compilation after that ca..

Answer / rao

u r trying wrong correct is <img src="">

Is This Answer Correct ?    11 Yes 1 No

My Question is that i am using <image> tag in my servlet and after compilation after that ca..

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

Post New Answer

More Servlets Interview Questions

Why servlet is mostly used?

0 Answers  


Life Cycle of servlets?

4 Answers   3i Infotech,


difference between request.getSession(false) or request.getSession() and request.getSession(true)

2 Answers  


What are the different methods involved in generic servlet?

0 Answers  


Explain the difference between jsp and servlet?

0 Answers  






Differentiate between get and post?

0 Answers  


what is the difference between ServletContext and ServletConfig

7 Answers  


What if you need to span your transaction across multiple servlet invocations?

0 Answers  


Explain the methods in Generic and HTTP Servlets?

2 Answers  


What is called Session Tracking?

0 Answers  


How to get the path of servlet in the server?

0 Answers  


How can we create deadlock situation in servlet?

0 Answers  


Categories