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

src

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.

page

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 context root to the specified value.

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.

 
loading table of contents...