To create a document in the ATG Document Editor:
Select a folder for the new document and click NewDocument in the toolbar.
When the Select Document Template dialog box opens, select the module and template to use. To see all available templates, select allmodules. Click OK.
Choose the appropriate template:
ChangePasswordForm(JSP): Creates a JSP version of the Change Password form template.
Login(JSP): Creates a JSP version of the Login template.
Logout(JSP): Creates a JSP version of the Logout template.
Page(JSP): Creates a simple JSP with a few basic HTML and DSP tag library tags.
Page (JWML): Creates a basic page with some JWML tags.
Note: ATG applications might include additional JSP document templates.
When the New JavaServer Page dialog box opens, enter the new document’s title and click Finish. The title is used as the HTML title and also appears as an
<H1>
heading in the new document.In the Input New Document Name dialog, enter the document’s file name and extension and click OK. The document name must be different from the folder name in which the file resides.
A separate Document Editor window opens, displaying the new document’s path name, structure, and full text. Appendix E, ATG Document Editor shows how to edit a document with the ATG Document Editor.
Rendering New JSPs
The first time a JSP is requested, it might take longer to display than you expect. Each time a page is requested, the servlet-version of the page is translated into HTML and rendered. New pages are not yet converted into servlets, so they must first be translated into raw Java code and then compiled into servlets before undergoing the final translation into HTML. You can minimize the delay by precompiling all pages at startup; see your application installation guide for instructions.
You can precompile individual pages at server startup by specifying them in your Web application deployment descriptor. For example, you might specify the JSP MyPage.jsp
as follows:
<servlet> <servlet-name>MyPage.jsp</servlet-name> <jsp-file>/path/to/jsp/MyPage.jsp</jsp-file> <load-on-startup>1</load-on-startup> </servlet>
where:
<servlet
name>
identifies the servlet to compile.<jsp
file>
identifies the path to the servlet.<load
on
startup>
identifies the order in which to compile this servlet.