aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2013-03-22 08:57:51 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2013-03-22 08:57:51 +0000
commitdb52e4d66d60184d53a27ba4d6772461daacc03d (patch)
treeb83e1024bc356dd9c612151082ccaa718781a524 /pdf-as-web/src/main/webapp
parent725749c85e2c4a0dca235e7b89a5c3b2752e5d54 (diff)
downloadpdf-as-3-db52e4d66d60184d53a27ba4d6772461daacc03d.tar.gz
pdf-as-3-db52e4d66d60184d53a27ba4d6772461daacc03d.tar.bz2
pdf-as-3-db52e4d66d60184d53a27ba4d6772461daacc03d.zip
Maintenance update (bugfixes, new features, cleanup...)
Refer to /dok/RELEASE_NOTES-3.3.txt for further information. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/pdf-as/trunk@931 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r--pdf-as-web/src/main/webapp/META-INF/context.xml11
-rw-r--r--pdf-as-web/src/main/webapp/WEB-INF/decorators.xml9
-rw-r--r--pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml21
-rw-r--r--pdf-as-web/src/main/webapp/jsp/null_request_page.jsp7
-rw-r--r--pdf-as-web/src/main/webapp/sitemesh/buergerkarte_at.jsp227
-rw-r--r--pdf-as-web/src/main/webapp/sitemesh/standalone.jsp234
6 files changed, 274 insertions, 235 deletions
diff --git a/pdf-as-web/src/main/webapp/META-INF/context.xml b/pdf-as-web/src/main/webapp/META-INF/context.xml
index a0de89e..6d79b26 100644
--- a/pdf-as-web/src/main/webapp/META-INF/context.xml
+++ b/pdf-as-web/src/main/webapp/META-INF/context.xml
@@ -1,9 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Context path="/pdf-as" cookies="true" reloadable="false">
+<Context path="/pdf-as" cookies="true" reloadable="false" useHttpOnly="true">
+
<Manager pathname="" />
<!-- Use system property "pdf-as.work-dir" or web.xml parameter "work-dir" instead. -->
<!--
<Parameter name="work-dir" value="${catalina.base}/conf/pdf-as" override="false"/>
-->
+
+ <!-- Enable BOTH environment variables in order to apply www.buergerkarte.at layout. -->
+ <!-- This overrides /WEB-INF/decorators.xml settings. -->
+ <!--
+ <Environment name="production_de" value="/sitemesh/buergerkarte_at.jsp?lang=de" type="java.lang.String" />
+ <Environment name="production_en" value="/sitemesh/buergerkarte_at.jsp?lang=en" type="java.lang.String" />
+ -->
+
</Context>
diff --git a/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml b/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml
index 6585f97..e1fff32 100644
--- a/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml
+++ b/pdf-as-web/src/main/webapp/WEB-INF/decorators.xml
@@ -5,6 +5,11 @@
<pattern>*.pdf</pattern>
<pattern>/*.pdf</pattern>
</excludes>
- <decorator name="production_de" page="/sitemesh/standalone.jsp?lang=de"/>
- <decorator name="production_en" page="/sitemesh/standalone.jsp?lang=en"/>
+
+ <!-- Default layout if no other layout has been chosen. -->
+ <!-- In order to apply other layouts, modify the context element information
+ (${catalina.home}/conf/Catalina/localhost/pdf-as.xml) -->
+ <decorator name="production_de" page="/sitemesh/standalone.jsp?locale=de" />
+ <decorator name="production_en" page="/sitemesh/standalone.jsp?locale=en" />
+
</decorators> \ No newline at end of file
diff --git a/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml b/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml
index c6653cc..cda7eb3 100644
--- a/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml
+++ b/pdf-as-web/src/main/webapp/WEB-INF/sitemesh.xml
@@ -1,30 +1,27 @@
<sitemesh>
+
<property name="decorators-file" value="/WEB-INF/decorators.xml"/>
<excludes file="${decorators-file}"/>
<page-parsers>
<parser content-type="text/html" class="com.opensymphony.module.sitemesh.parser.HTMLPageParser" />
</page-parsers>
+
<decorator-mappers>
+
<mapper class="com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper">
<param name="property.1" value="meta.decorator" />
<param name="property.2" value="decorator" />
</mapper>
- <!--
- <mapper class="com.opensymphony.module.sitemesh.mapper.LanguageDecoratorMapper">
- <param name="match.en" value="en" />
- </mapper>
- -->
+
<mapper class="at.gv.egiz.pdfas.web.i18n.LanguageDecoratorMapper"/>
+
<mapper class="com.opensymphony.module.sitemesh.mapper.FrameSetDecoratorMapper"/>
- <mapper class="com.opensymphony.module.sitemesh.mapper.PrintableDecoratorMapper">
- <param name="decorator" value="printable" />
- <param name="parameter.name" value="printable" />
- <param name="parameter.value" value="true" />
- </mapper>
- <mapper class="com.opensymphony.module.sitemesh.mapper.FileDecoratorMapper"/>
- <mapper class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
+
+ <mapper class="com.opensymphony.module.sitemesh.mapper.EnvEntryDecoratorMapper">
<param name="config" value="${decorators-file}" />
</mapper>
+
</decorator-mappers>
+
</sitemesh>
diff --git a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp
index 58442d6..5e992df 100644
--- a/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp
+++ b/pdf-as-web/src/main/webapp/jsp/null_request_page.jsp
@@ -36,12 +36,13 @@
isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(ssi.connector);
isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(ssi.connector);
isMobileTest = Constants.SIGNATURE_DEVICE_MOBILETEST.equals(ssi.connector);
- } else {
+ } else if (si instanceof VerifySessionInformation) {
VerifySessionInformation vsi = (VerifySessionInformation) si;
isExternalInvocation = vsi.exappinf != null;
isServerBKU = Constants.SIGNATURE_DEVICE_MOC.equals(vsi.connector);
- isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(ssi.connector);
- isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(ssi.connector);
+ isLocalBKU = Constants.SIGNATURE_DEVICE_BKU.equals(vsi.connector);
+ isMobileBKU = Constants.SIGNATURE_DEVICE_MOBILE.equals(vsi.connector);
+ isMobileTest = Constants.SIGNATURE_DEVICE_MOBILETEST.equals(vsi.connector);
}
boolean testMode = request.getContextPath().startsWith("/test-");
diff --git a/pdf-as-web/src/main/webapp/sitemesh/buergerkarte_at.jsp b/pdf-as-web/src/main/webapp/sitemesh/buergerkarte_at.jsp
new file mode 100644
index 0000000..4bb19ff
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/sitemesh/buergerkarte_at.jsp
@@ -0,0 +1,227 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
+<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page" %>
+
+<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
+<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %>
+
+<%@ page import="java.net.URL" %>
+<%@ page import="java.net.URLConnection" %>
+<%@ page import="java.io.InputStream" %>
+<%@ page import="java.io.InputStreamReader" %>
+<%@ page import="java.io.BufferedReader" %>
+<%@ page import="net.htmlparser.jericho.Source" %>
+<%@ page import="net.htmlparser.jericho.Element" %>
+<%@ page import="net.htmlparser.jericho.Attributes" %>
+<%@ page import="net.htmlparser.jericho.Attribute" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="java.util.Locale" %>
+<%@ page import="at.gv.egiz.pdfas.web.i18n.LocaleParamFilter" %>
+<%@ page import="java.nio.charset.Charset" %>
+<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %>
+
+
+<%@page import="java.nio.charset.Charset"%>
+
+ <html>
+ <head>
+
+ <script language="javascript" type="text/javascript">
+ //Submit the form when the change language button was hit
+ function submit() {
+ var file = document.submitform.source.options[0].selected;
+ if (file) {
+ document.changelanguage.source_mode.value='file';
+ }
+ else {
+ document.changelanguage.source_mode.value='text';
+ document.changelanguage.text.value=document.getElementById('freetext').value;
+ }
+ document.changelanguage.submit();
+ }
+ </script>
+
+ <%
+
+ String headerUrl="http://www.buergerkarte.at/header.php?lang=";
+ //String headerUrl="http://www.buergerkarte.at/header.php";
+ String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
+ String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
+
+ String requestLang = (String)session.getAttribute(SessionAttributes.LANGUAGE);
+
+ String language = "";
+
+ URL urlHeader = new URL(headerUrl);
+
+ if (requestLang!=null) {
+ if (requestLang.equals("de")) {
+ urlHeader = new URL(headerUrl+"de");
+ language="de";
+ }
+ else {
+ urlHeader = new URL(headerUrl+"en");
+ language="en";
+ }
+ }
+ else {
+ requestLang = request.getParameter("lang");
+ if (requestLang!=null) {
+ if (requestLang.equals("de")) {
+ urlHeader = new URL(headerUrl+"de");
+ language="de";
+ }
+ else {
+ urlHeader = new URL(headerUrl+"en");
+ language="en";
+ }
+ }
+ else {
+ urlHeader = new URL(headerUrl+"de");
+ language="de";
+ }
+ }
+
+ URLConnection ucHeader = urlHeader.openConnection();
+
+ InputStream isHeader = ucHeader.getInputStream();
+
+ //Read the header php files from the server
+ BufferedReader brHeader = new BufferedReader(new InputStreamReader(isHeader, Charset.forName("UTF-8")));
+
+ String phpLine="";
+ String phpHeader="";
+ while ((phpLine=brHeader.readLine())!=null) {
+ phpHeader += phpLine;
+ }
+
+ phpHeader = phpHeader.substring(phpHeader.indexOf("<body"), phpHeader.length());
+
+ Source source = new Source(phpHeader);
+ List list = source.getAllElements();
+ Iterator it = list.iterator();
+ while (it.hasNext()) {
+ Element element = (Element)it.next();
+
+ //Set the absolute path for each element with src or href
+ String attributeValueSrc = element.getAttributeValue("src");
+ String attributeValueHref = element.getAttributeValue("href");
+
+ if ((attributeValueSrc!=null) || (attributeValueHref!=null)) {
+
+ String attribute = "";
+
+ if ((attributeValueSrc!=null) && (attributeValueHref!=null)) {
+ phpHeader = phpHeader.replace(attributeValueSrc, serverUrl+attributeValueSrc);
+ phpHeader = phpHeader.replace(attributeValueHref, serverUrl+attributeValueHref);
+ }
+ else {
+ if (attributeValueSrc!=null) {
+ phpHeader = phpHeader.replace(attributeValueSrc, serverUrl+attributeValueSrc);
+ }
+ if (attributeValueHref!=null) {
+ phpHeader = phpHeader.replace(attributeValueHref, serverUrl+attributeValueHref);
+ }
+ }
+ }
+
+ }
+
+ //Insert sitemap
+ Element breadcrumbsDiv = source.getElementById("breadcrumbs");
+ if (breadcrumbsDiv!=null) {
+ String replaceString = "";
+ if (language.equals("de")) {
+ replaceString = "<div id=\"breadcrumbs\"><em>Sie sind hier:</em> <a href=\""+serverUrl+"index.de.php\"> Startseite </a> &gt; <a href=\""+serverUrl+"pdf-signatur.de.php\">PDF-Signatur</a> &gt; PDF-Signatur \n</div>";
+ }
+ else {
+ replaceString = "<div id=\"breadcrumbs\"><em>You are here:</em> <a href=\""+serverUrl+"index.en.php\"> Start page </a> &gt; <a href=\""+serverUrl+"pdf-signatur.en.php\">PDF-Signatures</a> &gt; PDF-Signature \n</div>";
+ }
+ phpHeader = phpHeader.replace(breadcrumbsDiv, replaceString);
+ }
+
+
+
+ //Insert a hidden language fake link, that is shown when the change of language is disabled
+ source = new Source(phpHeader);
+
+ Element element = source.getElementById("sprachlinkneu");
+
+ if (element!=null) {
+ String languagelink;
+ int positionToInsertLangLink = 0;
+ int positionToEndLangLink = 0;
+ positionToInsertLangLink=element.getBegin();
+ positionToEndLangLink=element.getEnd();
+ if (!language.equals("de")) {
+ languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"de\">Deutsch</a></li>";
+ }
+ else {
+ languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"en\">English</a></li>";
+ }
+ String firstPart = phpHeader.substring(0, positionToInsertLangLink);
+ String secondPart = phpHeader.substring(positionToEndLangLink, phpHeader.length());
+ phpHeader = firstPart+languagelink+secondPart;
+ }
+ else {
+ int positionToEnd=0;
+ list = source.getAllElements("li");
+ it = list.iterator();
+ int i=0;
+ while (it.hasNext()) {
+ element = (Element)it.next();
+ if (i==5) {
+ positionToEnd = element.getEnd();
+ }
+ i++;
+ }
+ String languagelink;
+ if (!language.equals("de")) {
+ languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"de\">Deutsch</a></li>";
+ }
+ else {
+ languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"en\">English</a></li>";
+ }
+ String firstPart = phpHeader.substring(0, positionToEnd);
+ String secondPart = phpHeader.substring(positionToEnd, phpHeader.length());
+ phpHeader = firstPart+languagelink+secondPart;
+ }
+
+
+
+
+ %>
+ <title>PDF Signature</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <%
+ if (language.equals("de")) { %>
+ <meta http-equiv="Content-Language" content="de" />
+ <% } else { %>
+ <meta http-equiv="Content-Language" content="en" />
+ <% } %>
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <meta name="Description" content="B&uuml;rgerkarte" />
+ <meta name="Keywords" content="Citizen Card, Austrian Citizen Card, Citizen Card Austria" />
+ <decorator:head/>
+ <link rel="stylesheet" type="text/css" href="<%=baseUrl %>/css/pdfas-styles.css" />
+ <link rel="shortcut icon" href="<%=serverUrl %>dateien/favicon.ico" type="image/vnd.microsoft.icon" />
+ <link rel="stylesheet" href="<%=serverUrl %>style.css" type="text/css" />
+ </head>
+
+ <%= phpHeader %>
+ <!-- mitte -->
+ <div id="mitte">
+ <!-- inhalt -->
+ <div class="inhalt" id="inhalt">
+ <!-- pdfas-container -->
+ <div id="pdfas-container">
+ <decorator:body/>
+ </div><!-- pdfas-container -->
+ </div><!-- inhalt -->
+ </div><!-- mitte -->
+ </div>
+ </body>
+</html>
diff --git a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp
index 4bb19ff..4116890 100644
--- a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp
+++ b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp
@@ -1,227 +1,27 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<?xml version="1.0" encoding="UTF-8" ?>
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
-<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page" %>
-
-<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
+<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %>
-<%@ page import="java.net.URL" %>
-<%@ page import="java.net.URLConnection" %>
-<%@ page import="java.io.InputStream" %>
-<%@ page import="java.io.InputStreamReader" %>
-<%@ page import="java.io.BufferedReader" %>
-<%@ page import="net.htmlparser.jericho.Source" %>
-<%@ page import="net.htmlparser.jericho.Element" %>
-<%@ page import="net.htmlparser.jericho.Attributes" %>
-<%@ page import="net.htmlparser.jericho.Attribute" %>
-<%@ page import="java.util.List" %>
-<%@ page import="java.util.Iterator" %>
-<%@ page import="java.util.Locale" %>
-<%@ page import="at.gv.egiz.pdfas.web.i18n.LocaleParamFilter" %>
-<%@ page import="java.nio.charset.Charset" %>
-<%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<html>
-<%@page import="java.nio.charset.Charset"%>
-
- <html>
<head>
-
- <script language="javascript" type="text/javascript">
- //Submit the form when the change language button was hit
- function submit() {
- var file = document.submitform.source.options[0].selected;
- if (file) {
- document.changelanguage.source_mode.value='file';
- }
- else {
- document.changelanguage.source_mode.value='text';
- document.changelanguage.text.value=document.getElementById('freetext').value;
- }
- document.changelanguage.submit();
- }
- </script>
-
- <%
-
- String headerUrl="http://www.buergerkarte.at/header.php?lang=";
- //String headerUrl="http://www.buergerkarte.at/header.php";
- String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
- String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
-
- String requestLang = (String)session.getAttribute(SessionAttributes.LANGUAGE);
-
- String language = "";
-
- URL urlHeader = new URL(headerUrl);
-
- if (requestLang!=null) {
- if (requestLang.equals("de")) {
- urlHeader = new URL(headerUrl+"de");
- language="de";
- }
- else {
- urlHeader = new URL(headerUrl+"en");
- language="en";
- }
- }
- else {
- requestLang = request.getParameter("lang");
- if (requestLang!=null) {
- if (requestLang.equals("de")) {
- urlHeader = new URL(headerUrl+"de");
- language="de";
- }
- else {
- urlHeader = new URL(headerUrl+"en");
- language="en";
- }
- }
- else {
- urlHeader = new URL(headerUrl+"de");
- language="de";
- }
- }
-
- URLConnection ucHeader = urlHeader.openConnection();
-
- InputStream isHeader = ucHeader.getInputStream();
-
- //Read the header php files from the server
- BufferedReader brHeader = new BufferedReader(new InputStreamReader(isHeader, Charset.forName("UTF-8")));
-
- String phpLine="";
- String phpHeader="";
- while ((phpLine=brHeader.readLine())!=null) {
- phpHeader += phpLine;
- }
-
- phpHeader = phpHeader.substring(phpHeader.indexOf("<body"), phpHeader.length());
-
- Source source = new Source(phpHeader);
- List list = source.getAllElements();
- Iterator it = list.iterator();
- while (it.hasNext()) {
- Element element = (Element)it.next();
-
- //Set the absolute path for each element with src or href
- String attributeValueSrc = element.getAttributeValue("src");
- String attributeValueHref = element.getAttributeValue("href");
-
- if ((attributeValueSrc!=null) || (attributeValueHref!=null)) {
-
- String attribute = "";
-
- if ((attributeValueSrc!=null) && (attributeValueHref!=null)) {
- phpHeader = phpHeader.replace(attributeValueSrc, serverUrl+attributeValueSrc);
- phpHeader = phpHeader.replace(attributeValueHref, serverUrl+attributeValueHref);
- }
- else {
- if (attributeValueSrc!=null) {
- phpHeader = phpHeader.replace(attributeValueSrc, serverUrl+attributeValueSrc);
- }
- if (attributeValueHref!=null) {
- phpHeader = phpHeader.replace(attributeValueHref, serverUrl+attributeValueHref);
- }
- }
- }
-
- }
-
- //Insert sitemap
- Element breadcrumbsDiv = source.getElementById("breadcrumbs");
- if (breadcrumbsDiv!=null) {
- String replaceString = "";
- if (language.equals("de")) {
- replaceString = "<div id=\"breadcrumbs\"><em>Sie sind hier:</em> <a href=\""+serverUrl+"index.de.php\"> Startseite </a> &gt; <a href=\""+serverUrl+"pdf-signatur.de.php\">PDF-Signatur</a> &gt; PDF-Signatur \n</div>";
- }
- else {
- replaceString = "<div id=\"breadcrumbs\"><em>You are here:</em> <a href=\""+serverUrl+"index.en.php\"> Start page </a> &gt; <a href=\""+serverUrl+"pdf-signatur.en.php\">PDF-Signatures</a> &gt; PDF-Signature \n</div>";
- }
- phpHeader = phpHeader.replace(breadcrumbsDiv, replaceString);
- }
-
-
-
- //Insert a hidden language fake link, that is shown when the change of language is disabled
- source = new Source(phpHeader);
-
- Element element = source.getElementById("sprachlinkneu");
-
- if (element!=null) {
- String languagelink;
- int positionToInsertLangLink = 0;
- int positionToEndLangLink = 0;
- positionToInsertLangLink=element.getBegin();
- positionToEndLangLink=element.getEnd();
- if (!language.equals("de")) {
- languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"de\">Deutsch</a></li>";
- }
- else {
- languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"en\">English</a></li>";
- }
- String firstPart = phpHeader.substring(0, positionToInsertLangLink);
- String secondPart = phpHeader.substring(positionToEndLangLink, phpHeader.length());
- phpHeader = firstPart+languagelink+secondPart;
- }
- else {
- int positionToEnd=0;
- list = source.getAllElements("li");
- it = list.iterator();
- int i=0;
- while (it.hasNext()) {
- element = (Element)it.next();
- if (i==5) {
- positionToEnd = element.getEnd();
- }
- i++;
- }
- String languagelink;
- if (!language.equals("de")) {
- languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"de\">Deutsch</a></li>";
- }
- else {
- languagelink = "<li id=\"sprachlinkneu\"><a href=\"#\" onclick=\"submit()\" hreflang=\"en\">English</a></li>";
- }
- String firstPart = phpHeader.substring(0, positionToEnd);
- String secondPart = phpHeader.substring(positionToEnd, phpHeader.length());
- phpHeader = firstPart+languagelink+secondPart;
- }
-
-
-
-
- %>
- <title>PDF Signature</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <%
- if (language.equals("de")) { %>
- <meta http-equiv="Content-Language" content="de" />
- <% } else { %>
- <meta http-equiv="Content-Language" content="en" />
- <% } %>
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <meta name="Description" content="B&uuml;rgerkarte" />
- <meta name="Keywords" content="Citizen Card, Austrian Citizen Card, Citizen Card Austria" />
<decorator:head/>
- <link rel="stylesheet" type="text/css" href="<%=baseUrl %>/css/pdfas-styles.css" />
- <link rel="shortcut icon" href="<%=serverUrl %>dateien/favicon.ico" type="image/vnd.microsoft.icon" />
- <link rel="stylesheet" href="<%=serverUrl %>style.css" type="text/css" />
+ <!--
+ <link rel="stylesheet" type="text/css" href="<%=LocalRequestHelper.getLocalContextAddress(request, response)%>/css/pdfas-styles.css" />
+ -->
+ <title><fmt:message key="common.title" /></title>
+ <!--
+ <link rel="stylesheet" type="text/css" href="<%=LocalRequestHelper.getLocalContextAddress(request, response)%>/css/pdfas-standalone-styles.css" />
+ -->
</head>
-
- <%= phpHeader %>
- <!-- mitte -->
- <div id="mitte">
- <!-- inhalt -->
- <div class="inhalt" id="inhalt">
- <!-- pdfas-container -->
- <div id="pdfas-container">
- <decorator:body/>
- </div><!-- pdfas-container -->
- </div><!-- inhalt -->
- </div><!-- mitte -->
- </div>
+
+ <body>
+ <decorator:body/>
</body>
+
</html>