comparison gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java @ 562:4df3347d6d1d

Removed trailing and leading Whitespaces from the Parametervalue which contains the XML-Document to avoid XML-Parsingerrors. gnv/trunk@668 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 09 Feb 2010 13:09:45 +0000
parents 8032da9e8b70
children 15ac78a91d1b
comparison
equal deleted inserted replaced
561:3f39756e0c8a 562:4df3347d6d1d
51 HttpServletResponse response) throws Exception { 51 HttpServletResponse response) throws Exception {
52 log.debug("MapViewerCallAction.execute"); 52 log.debug("MapViewerCallAction.execute");
53 InputStream inputStream = null; 53 InputStream inputStream = null;
54 String documentvalue = request.getParameter("document"); 54 String documentvalue = request.getParameter("document");
55 if (documentvalue != null){ 55 if (documentvalue != null){
56 documentvalue = documentvalue.trim();
56 inputStream = new ByteArrayInputStream(documentvalue.getBytes()); 57 inputStream = new ByteArrayInputStream(documentvalue.getBytes());
57 }else{ 58 }else{
58 inputStream = request.getInputStream(); 59 inputStream = request.getInputStream();
59 } 60 }
60 61

http://dive4elements.wald.intevation.org