Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 665:27f25b9ae9af
Improved exception handling. Display error messages after invalid user input.
gnv/trunk@758 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 10 Mar 2010 13:41:53 +0000 |
parents | b31e81f35b64 |
children | ccd47d9887ec |
comparison
equal
deleted
inserted
replaced
664:15497dce8fcd | 665:27f25b9ae9af |
---|---|
1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> | 1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> |
2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> | |
2 <%@page import="java.util.Collection"%> | 3 <%@page import="java.util.Collection"%> |
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> | 4 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> |
5 <%@page import="de.intevation.gnv.action.CommunicationKeys"%> | |
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> | 6 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> | 7 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
6 <%@page import="java.util.Iterator"%> | 8 <%@page import="java.util.Iterator"%> |
7 <% | 9 <% |
10 String exception = (String)request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_INPUT_ID); | |
8 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); | 11 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
9 Object ui = request.getAttribute("ui"); | 12 Object ui = request.getAttribute("ui"); |
10 Object staticui = request.getAttribute("staticui"); | 13 Object staticui = request.getAttribute("staticui"); |
11 Object chart = request.getAttribute("chart"); | 14 Object chart = request.getAttribute("chart"); |
12 Object statistic = request.getAttribute("statistic"); | 15 Object statistic = request.getAttribute("statistic"); |
37 </fieldset> | 40 </fieldset> |
38 </div> | 41 </div> |
39 <%}%> | 42 <%}%> |
40 | 43 |
41 <%-- render the dynamic part to feed the state and advance to the next state --%> | 44 <%-- render the dynamic part to feed the state and advance to the next state --%> |
42 <%if (ui != null){%> | 45 <%if (ui != null){%> |
43 <div id="timeseriesfilter"> | 46 <div id="timeseriesfilter"> |
44 <form id="fisSelectionForm" onsubmit="displayOverlay()" action="<%=response.encodeURL("next.do")%>" method="post"> | 47 <form id="fisSelectionForm" onsubmit="displayOverlay()" action="<%=response.encodeURL("next.do")%>" method="post"> |
45 <fieldset> | 48 <fieldset> |
49 | |
50 <%-- error message, if user input was not valid --%> | |
51 <%if (exception != null) {%> | |
52 <div class="inputException"><%=exception%></div> | |
53 <%}%> | |
46 <%=ui != null ? ui.toString().replaceAll(" ", "") : "" %> | 54 <%=ui != null ? ui.toString().replaceAll(" ", "") : "" %> |
47 | 55 |
48 <%if(furthertargets){%> | 56 <%if(furthertargets){%> |
49 <input type="submit" value="<bean:message key="gnviewer.select.button"/>"/> | 57 <input type="submit" value="<bean:message key="gnviewer.select.button"/>"/> |
50 <%}%> | 58 <%}%> |