diff options
Diffstat (limited to 'pdf-as-web/src/main/webapp/jsp/download.jsp')
-rw-r--r-- | pdf-as-web/src/main/webapp/jsp/download.jsp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/download.jsp b/pdf-as-web/src/main/webapp/jsp/download.jsp new file mode 100644 index 0000000..1b56f93 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/download.jsp @@ -0,0 +1,44 @@ +<%@ page contentType="text/html; charset=UTF-8"%>
+
+<%@ include file="language.jsp" %>
+
+<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %>
+<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %>
+
+<%
+ String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT);
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <title><fmt:message key="download.title"/></title>
+ <script language="javascript" type="text/javascript">
+ <!--
+ function disableElement(elementId) {
+ document.getElementById(elementId).disabled = true;
+ document.getElementById(elementId).blur();
+ }
+ function hitButton() {
+ document.submitform.submit();
+ disableElement("SendRequestButton");
+ document.getElementById("SendRequestButton").value = "<fmt:message key="download.button.alreadydone"/>";
+ return(true);
+ }
+ -->
+ </script>
+ <base href="<%= LocalRequestHelper.getLocalContextAddress(request, response) %>/"/>
+ </head>
+
+ <body>
+ <h1><fmt:message key="common.title"/></h1>
+ <h2><fmt:message key="download.heading2"/></h2>
+ <div class="pdfasnote"><fmt:message key="download.note"/></div>
+ <div class="pdfasverticalspace"></div>
+ <form action="<%= downloadURL %>" name="submitform" accept-charset="UTF-8" method="post" enctype="application/x-www-form-urlencoded">
+ <input type="submit" id="SendRequestButton" value="<fmt:message key="download.button.download"/>" onclick="return hitButton();"/>
+ </form>
+ <div class="pdfasverticalspace"></div>
+ <a href="<%= (response.encodeRedirectURL(request.getContextPath() + "/") + "?") %><fmt:message key="common.locale.param"/>"><fmt:message key="common.back"/></a>
+ </body>
+
+</html>
|