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

How do you design microservices?

0 Answers  


What is meant by Servlet? What are the parameters of service method?

0 Answers  


Why session tracking is needed?

0 Answers  


Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?

3 Answers   L&T,


What is session variable in servlets?

1 Answers  






Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

0 Answers  


Can I override destroy() method of Servlets?

4 Answers   Accenture,


Define the life cycle of a servlets.

0 Answers  


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

0 Answers  


Explain the role of dispatcherservlet and contextloaderlistener.

0 Answers  


if we know the any consultancies, it will place in company work through consultancy(contract base). please help me I'm 2008 pass out java candidate...

1 Answers  


Explain the different ways for servlet authentication?

0 Answers  


Categories