0
How to add image in servlet
it shows error when i write.. out.println("<img src="acd.jpg">");
2 Answers
+ 1
Escape the double quotes like \"
0
"<img src=" //here is the end of string
acd.jpg // no object called acd
">" // second string
to prevent that just use "<img src='acd.jpg'>" singular quotes for file name.