Mercurial > dive4elements > gnv-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
165:183850730a90 | 166:c5edd8fcae8c |
---|---|
1 <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" | 1 <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" language="java"%> |
2 language="java"%> | |
3 <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> | 2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> |
4 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> | 3 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> |
4 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> | |
5 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> | 5 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> |
6 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%> | 6 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%> |
7 <% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);%> | 7 <% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID); |
8 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null); | |
9 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage); | |
10 | |
11 %> | |
8 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml /> | 12 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml /> |
9 <!-- Kopfleiste--> | 13 <!-- Kopfleiste--> |
10 <div id="head" title="GDI BSH genericViewer"> | 14 <div id="head" title="GDI BSH genericViewer"> |
11 <div id="logo"> | 15 <div id="logo"> |
12 | 16 |
26 </label> | 30 </label> |
27 <div id="project_load"> | 31 <div id="project_load"> |
28 | 32 |
29 </div> | 33 </div> |
30 <br/> | 34 <br/> |
31 <div class="errormsg" id="load_error"> | 35 |
32 <%=exceptionMessage != null ? exceptionMessage.toString():"" %> | |
33 </div> | |
34 </div> | 36 </div> |
37 <div class="errormsg" id="load_error"> | |
38 <%if (exceptionMessage != null){ %> | |
39 <bean-el:message key="<%=exceptionMessage.toString()%>"/> | |
40 <%}%> | |
41 </div> | |
35 </div> | 42 </div> |
36 | 43 |