annotate gnv/src/main/webapp/WEB-INF/jsp/header.jsp @ 166:c5edd8fcae8c

Added localized Exception Messages. Added CSS-Entry for the Exception Message Container and put the div at a proper place. gnv/trunk@331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Thu, 12 Nov 2009 15:30:28 +0000
parents cfe6467d3b7b
children b5733f9f386b
rev   line source
166
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
1 <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" language="java"%>
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
166
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
4 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %>
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
6 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
166
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
7 <% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
8 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null);
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
9 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage);
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
10
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
11 %>
34
25fdec8b4c69 Added Global Errorhandling to the GNV-Client
Tim Englich <tim.englich@intevation.de>
parents: 15
diff changeset
12 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
13 <!-- Kopfleiste-->
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
14 <div id="head" title="GDI BSH genericViewer">
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 <div id="logo">
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
16
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
18 </div>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
19 <a href="<html:rewrite action="/start"/>">
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20 <h1>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
21 <bean:message key="gnviewer.app.title" />
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
22 </h1>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
23 </a>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
24
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
25 <div id="project">
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 <label style="font-weight:bold;">
42
cfe6467d3b7b Deaktivate Links save Project and load Project gnv/issue12
Tim Englich <tim.englich@intevation.de>
parents: 34
diff changeset
27 <bean:message key="gnviewer.project.load"/>
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
28 |
42
cfe6467d3b7b Deaktivate Links save Project and load Project gnv/issue12
Tim Englich <tim.englich@intevation.de>
parents: 34
diff changeset
29 <bean:message key="gnviewer.project.save" />
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 </label>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
31 <div id="project_load">
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
32
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
33 </div>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
34 <br/>
166
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
35
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
36 </div>
166
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
37 <div class="errormsg" id="load_error">
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
38 <%if (exceptionMessage != null){ %>
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
39 <bean-el:message key="<%=exceptionMessage.toString()%>"/>
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
40 <%}%>
c5edd8fcae8c Added localized Exception Messages.
Tim Englich <tim.englich@intevation.de>
parents: 42
diff changeset
41 </div>
15
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42 </div>
a52aecf5bb9b Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43

http://dive4elements.wald.intevation.org