changeset 153:48f538077aea

Added context.xml to permitt cookies to provide Multisession-usability for a single Client issue28 gnv/trunk@251 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 21 Oct 2009 08:20:06 +0000 (2009-10-21)
parents 330871ca1fd3
children d6b82c585f1f
files gnv/ChangeLog gnv/src/main/webapp/META-INF/context.xml gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp
diffstat 3 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Mon Oct 19 13:31:51 2009 +0000
+++ b/gnv/ChangeLog	Wed Oct 21 08:20:06 2009 +0000
@@ -1,3 +1,12 @@
+2009-10-21  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/webapp/META-INF/context.xml: 
+	  Added context.xml to permitt cookies to provide 
+	  Multisession-Usability for a single Client issue28
+	* src/main/webapp/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp:
+	  Added URL-Rewrite to add the SessionID to the requested URL to get 
+	  the System work without cookies. issue28 
+
 2009-10-19  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/webapp/WEB-INF/config/templates/describe-ui.xsl,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv/src/main/webapp/META-INF/context.xml	Wed Oct 21 08:20:06 2009 +0000
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Context path="gnv" docBase="gnv" cookies="false" reloadable="true"/>
\ No newline at end of file
--- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp	Mon Oct 19 13:31:51 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp	Wed Oct 21 08:20:06 2009 +0000
@@ -19,15 +19,19 @@
         <legend onmousedown="displayDiv('diagramOptionsContent');" class="expandableFieldset">
            <bean:message key="gnviewer.diagram.options.header.title"/>
         </legend>
-        <form id="outputOptionsForm" method="post" action="changeOptions.do">
+        <form id="outputOptionsForm" method="post" action="<%=response.encodeURL("changeOptions.do")%>">
            <table>
            <%if (outputMode != null && outputMode.getOutputParameters() != null && !outputMode.getOutputParameters().isEmpty()){
                Iterator<OutputParameter> it = outputMode.getOutputParameters().iterator();
                while (it.hasNext()){
                    OutputParameter om = it.next(); %>
                <tr>
-                  <td><bean-el:message key="<%=om.getName()%>"/></td>
-                  <td><input type="text" name="<%=om.getName() %>"value="<%=useDiagrammOptions ? diagrammOptions.getValue(om.getName()): om.getValue()%>"/></td>
+                  <td>
+                      <bean-el:message key="<%=om.getName()%>"/>
+                  </td>
+                  <td>
+                      <input type="text" name="<%=om.getName() %>" value="<%=useDiagrammOptions ? diagrammOptions.getValue(om.getName()): om.getValue()%>"/>
+                  </td>
               </tr>
            <%}%>
            </table>

http://dive4elements.wald.intevation.org