Inserts an image into a JSP.
<dsp:img {page="page-spec" | src="page-spec" [otherContext="context"]}/>Attributes
page
Sets the page’s path and file name in two ways:
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 rootto the specified value.
src
Sets the page’s path and file name. The src attribute can access pages in another Web application if the current application’s web.xmlatg.dynamo.contextPaths parameter is configured appropriately, or if the otherContext attribute specifies the correct context path. For more information, see Invoking Pages in Other Web Applications.
otherContext
identifies a context path that is not specified in the application’s web.xml; valid with the src attribute.
Usage Notes
dsp:img lets you insert an image file into a JSP, like an HTML img tag. 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.
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.

