A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Nov 11, 2003
Oct 04, 2005 08:17:00
Could you please advice me whether can we include image using <%@include %> tag in jsp?
ie.,<%@include file="../images/image.jpg"%>.I tried ,but i could not.
But when I include that image in html file and after trying with this code ie.,<%@ include file="<filename>.html" %>(included image in html page using <img> tag.It works fine.
Pls clear this.
Joined: Dec 11, 2004
Oct 04, 2005 08:26:00
A simple HTML 'img' tag will suffice.
The browser will make a separate request for the image.
How to ask a question...
Simple Servlet Examples
It is sorta covered in the
JavaRanch Style Guide
subject: include tag
server side includes
Editing html tags in a *.htm file
write byte to file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014