Generates an HTML frame.
<dsp:frame {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 root
to 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.xml
atg.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:frame
acts just like the HTML frame
tag: you can use it to embed other pages or screen elements into a parent page. There is no corresponding frameset
tag because you can use the standard HTML frameset
tag. The DSP tag libraries tags let you access data and represent that data in your pages, but they do not handle page layout or presentation. The primary difference between the HTML frame tag and dsp:frame
is that you pass page parameters and bean property values from a parent page to the child page.
Note: The dsp:frame
tag uses the iclass
attribute in place of the cascading stylesheet class
attribute to avoid using a Java reserved word in Java code.
Example
<dsp:frame page="en/brokerhome.jsp"/>
In this example, brokerhome.jsp
is inserted into the parent page.