dsp:img
lets you insert an image file into a JSP, just as the img
tag permits you to do in an HTML file. The ATG platform processes the image source URL by encoding it.
Note:dsp:img
uses the iclass
attribute in place of the cascading stylesheet class
attribute to avoid using a Java reserved word in Java code.
Attributes
EmbeddedImage:srcorpage(Required)
You must use one of these attributes to determine the image to insert into the parent page.
Attribute | Description |
---|---|
| Path and file name. Resolves relative paths using the current page as a starting point. Resolves absolute paths using the Web server doc root as a starting point. |
| Path and file name. Resolves relative paths using the current page as a starting point. Resolves absolute paths using the Web application root as a starting point by prepending the request object’s |
Example
<dsp:img page="en/images/IdPhoto.gif">
In this example, the IDPhoto.gif
image, located in en/images
, is imported into the parent page.