JSP
This example involves 3 JSP pages:
- Modelbegin.jsp. This is an override of the normal modelbegin.jsp. It specifies a location for the final document that is unique for each user. Before calling runmodel, it adds three parameters:
- Res_srv is set to "y" so that ITP/OnLine stores the document on the ITP/Server machine.
- Res_owt is set to "y" so that existing documents get overwritten.
- Res_uri is set to <respath>/<domain>/<user>.doc. It uses the itp:user variable for this, which is stored at session level. This variable delivers the current user id as <domain>\<user>.
- Modelend.jsp. This is an override of the normal modelend.jsp page. It outputs the processing selection page, and also calls ITP/Server to execute print, mail and show.
- Deletedoc.jsp. This page outputs the final 'delete' page, and also implements the delete action.
The last two pages are too long to list or discuss here. See the jsp pages in the DocProc directory for details.
There is however one new thing in these JSP pages that needs mentioning: the call to the ITP/Server service DocProcGet in modelend.jsp specifies a different value attribute:
<itp:ServerCall name="DocProcGet" type="online" value="document">
<itp:ServerParameter value="${param.show}"/>
</itp:ServerCall>
This type of value specifies that the ServerCall tag will be replaced by a URL to a copy of the document.