Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/WEB-INF/jsp/info.jsp @ 1020:ba918db634a1
Added info pages for german and english (not translated yet).
gnv/trunk@1255 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 01 Jul 2010 11:00:19 +0000 |
parents | de9a0b16e99f |
children | 28a0628b11b0 |
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/info.jsp Wed Jun 30 13:52:51 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/info.jsp Thu Jul 01 11:00:19 2010 +0000 @@ -1,6 +1,14 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> +<%@ page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> +<%@ page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> +<%@ page import="java.util.Locale"%> + +<% + SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); + Locale locale = sm.getCurrentLocale(); +%> <html xmlns="http://www.w3.org/1999/xhtml"> <head> @@ -31,7 +39,18 @@ </table> </div> <div id="contentElement" class="contentElement"> - TODO: Info + <% + if (locale.getLanguage().equals(Locale.GERMAN.getLanguage())) { + %> + <jsp:include page="/WEB-INF/jsp/includes/info_german.jsp" /> + <% + } + else { + %> + <jsp:include page="/WEB-INF/jsp/includes/info_english.jsp" /> + <% + } + %> </div> <div id="footerElement"> <jsp:include page="footer.jsp" />