Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/WMSAction.java @ 681:15ac78a91d1b
Removed trailing whitespace.
gnv/trunk@852 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 08:04:15 +0000 |
parents | ba3370dbc8c5 |
children | d49e8695786c |
comparison
equal
deleted
inserted
replaced
680:ba3370dbc8c5 | 681:15ac78a91d1b |
---|---|
121 if (tmpTTL != null) { | 121 if (tmpTTL != null) { |
122 DateFormat df = DateFormat.getDateTimeInstance( | 122 DateFormat df = DateFormat.getDateTimeInstance( |
123 DateFormat.LONG, | 123 DateFormat.LONG, |
124 DateFormat.LONG, | 124 DateFormat.LONG, |
125 request.getLocale()); | 125 request.getLocale()); |
126 | 126 |
127 try { | 127 try { |
128 long tmp = Long.parseLong(tmpTTL); | 128 long tmp = Long.parseLong(tmpTTL); |
129 ttl = df.format(new Date(tmp)); | 129 ttl = df.format(new Date(tmp)); |
130 } | 130 } |
131 catch (NumberFormatException nfe) { | 131 catch (NumberFormatException nfe) { |
146 request.setAttribute("wms", true); | 146 request.setAttribute("wms", true); |
147 request.setAttribute("mapserver", mapserverPath); | 147 request.setAttribute("mapserver", mapserverPath); |
148 request.setAttribute("mapfile", mapfilePath); | 148 request.setAttribute("mapfile", mapfilePath); |
149 request.setAttribute("layer", layer); | 149 request.setAttribute("layer", layer); |
150 request.setAttribute("ttl", ttl); | 150 request.setAttribute("ttl", ttl); |
151 if (mapserverPath != null && | 151 if (mapserverPath != null && |
152 mapfilePath != null && | 152 mapfilePath != null && |
153 layer != null){ | 153 layer != null){ |
154 request.setAttribute("wms_published", Boolean.TRUE); | 154 request.setAttribute("wms_published", Boolean.TRUE); |
155 return super.execute(mapping, form, request, response); | 155 return super.execute(mapping, form, request, response); |
156 }else{ | 156 }else{ |