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

List some life cycle methods of a servlet.

0 Answers  


What are the new features added to servlet 2.5?

0 Answers  


Why filter is used in servlet?

0 Answers  


What is the role of the webserver?

4 Answers  


Define servlet mapping?

0 Answers  


Why do we need a constructor in a servlet if we use the init method?

0 Answers  


How multiple simultaneous requests can be handled by servlets?

2 Answers  


HTTP tunneling means what?

2 Answers  


What is called servlet container?

0 Answers  


Whether we can get deadlock situation in servlets?

0 Answers  


give the syntax of doGet() and doPost()?

2 Answers  


Explain the jar and war files in servlet?

0 Answers  


Categories