diff gnv/src/main/webapp/WEB-INF/jsp/includes/display_fis_inc.jsp @ 39:6c46f9b16166

gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 02 Oct 2009 14:29:08 +0000
parents 367a00e4b9ad
children ae1e616ecf94
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_fis_inc.jsp	Fri Oct 02 09:10:36 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_fis_inc.jsp	Fri Oct 02 14:29:08 2009 +0000
@@ -1,4 +1,5 @@
 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
+<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %>
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
 <%@page import="java.util.Collection"%>
@@ -7,6 +8,7 @@
 <%
   SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
   Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
+  String prefix = "gnviewer.fis.";
 %>
 <div id="basefilter">
     <form id="fisSelectionForm" action="<%=response.encodeURL("selectArtifactFactory.do")%>" method="post">
@@ -18,7 +20,7 @@
            <%Iterator<ArtifactObject> it = artifactFactories.iterator();
            while (it.hasNext()){
                 ArtifactObject ao = it.next();%>
-                <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
+                <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><bean-el:message key="<%=(prefix+ao.getName())%>"/></option>
            <%}%>
            </select>
     <%}%>

http://dive4elements.wald.intevation.org