<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> <%@ page import="java.io.ObjectOutputStream"%> <%@ page import="java.io.IOException"%> <%@ page import="java.net.URL"%> <%@ page import="org.splat.dal.bo.kernel.User"%> <%@ page import="org.splat.som.ApplicationRights"%> <%@ page import="org.splat.simer.OpenStudyServices"%> <% String doctype = request.getParameter("type"); ApplicationRights rights = (ApplicationRights)session.getAttribute("user.rights"); OpenStudyServices make = (OpenStudyServices)session.getAttribute("study.open"); try { ObjectOutputStream toapplet = new ObjectOutputStream(response.getOutputStream()); URL docurl = make.newTemplateBasedDocument(doctype, rights.getUser()); if (docurl != null) { toapplet.writeObject(docurl); toapplet.flush(); toapplet.close(); } } catch (IOException error) { // error.printStackTrace(); } %>