![]() |
Business Internet Services |
|
A dxp page is compiled from an xml source file and stored as a server side
Object by a cache in a DxpServlet. A dxp page responds to an http request
and writes a result back to a OutputStream which the DxpServlet sends back
to the caller.
The default contentType returned by a DxpPage is "text/html". You can change
this by setting the contentType attribute. DxpPages can deliver xml content but
you must set the contentType attribute and configure your webserver to deliver
the correct mime type for xml and xsl files.
A DxpPage can tell the DxpServlet to save it's result as a static file so it can be
delivered directly by apache from then on and does not have to run each time. To do this
set the attribute staticFile to a value that does NOT have a dxp extension.
This page is only changed once per day by an authorized user. It writes
a static file that is delivered by apache. IMPORTANT: if you use a non-standard extension like '.xyz'
to deliver html content then you must configure your webserver to return the correct
contentType because it will deliver the static file to clients and needs to tell them.
For example, suppose you want to use '.dxps' to deliver static html content
and 'xmls' to deliver static xml content using apache. Make 'AddType' to
the following section of apache's httpd.conf file in this section:
If you call your static files '.html', browsers and proxy servers will cache it
and may not pick up your new version when you want them to. You can try setting
a couple of meta tags in the <head> section of the html page to tell them not
to cache the page.
The buffsize attribute in a DxpPage should be set slightly larger than the average size the page will normally deliver. This may vary for database related pages that return different sets of results. You can test the average size by calling the page with your browser and then saving the result as a local file. The attribute debug can be set to 'true' is you want tags to print msgs to the stdout and stderr. This may appear in different files or the console depending on how you servelt runner. If a DxpPage contains an AuthUser tag the user or session will be checked by the the DxpServlet before it runs the page. Return to Index Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com. |
|
© 2005 Planetary
Data Systems.
All rights reserved. |