<dsp:page[
xml="{true|false}"]
[
useXmlParamDelimiter="{true|false}"]
> ... </dsp:page>
Attributes
xml
Specifies the page output as HTML (false) or XML (true). If you omit this attribute, the page output is HTML, unless a true setting is inherited from a parent page. To designate different output types within the same page, use dsp:setxml.
useXmlParamDelimiter
Specifies the delimiter used by DynamoHTTPServletRequest.addQueryParam
to separate query parameters:
true: Use the XML delimiter
&
false: Use HTML delimiter
&
A value provided by a dsp:page
or dsp:setxml
tag to a parent page is automatically inherited by an embedded page, unless the embedded page itself declares a delimiter. If no value is detected, the ATG platform uses the delimiter associated with the page’s MIME type.
Usage Notes
dsp:page
encloses a JSP: the first tag follows the page directive and the last tag ends the page. dsp:page
invokes the JSP handler, which calls the servlet pipeline and generates HTTPServletRequest
. The servlet pipeline manages generic page-related tasks, such as retrieving the servlet session components, instructing the page to render its contents, and clearing cached information.
Example
<%@ taglib uri=http://www.atg.com/taglibs/daf/dspjspTaglib1_0 prefix="dsp" %> <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %> <dsp:page> <dsp:droplet name="/atg/dynamo/droplet/Switch"> <dsp:param bean="/atg/dynamo/servlet/RequestLocale.locale.language" name="value"/> <dsp:oparam name="fr"><%response.sendRedirect("fr");%></dsp:oparam> <dsp:oparam name="de"><%response.sendRedirect("de");%></dsp:oparam> <dsp:oparam name="ja"><%response.sendRedirect("ja");%></dsp:oparam> <dsp:oparam name="en"><%response.sendRedirect("en");%></dsp:oparam> <dsp:oparam name="default"><%response.sendRedirect("en/default.jsp");%> </dsp:oparam> </dsp:droplet> </dsp:page>
This page points to a page in the user’s preferred language. The language preference is obtained from the RequestLocale.locale.language
property. The dsp:page
tags surround the body of the JSP; only the page directive that defines the tag library precedes the dsp:page
tags.