[Yanel-commits] rev 21853 -
public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Thu Jan 18 00:57:03 CET 2007
Author: michi
Date: 2007-01-18 00:57:01 +0100 (Thu, 18 Jan 2007)
New Revision: 21853
Modified:
public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/CalendarResource.java
Log:
throw exception
Modified: public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/CalendarResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/CalendarResource.java 2007-01-17 23:41:55 UTC (rev 21852)
+++ public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/CalendarResource.java 2007-01-17 23:57:01 UTC (rev 21853)
@@ -114,9 +114,12 @@
java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();
try {
Transformer transformer = TransformerFactory.newInstance().newTransformer(new StreamSource(new File(xslt)));
+
+ // TODO: This will cause encoding problems. See for instance http://skew.org/xml/tutorial/
transformer.transform(new StreamSource(new java.io.StringBufferInputStream(calendar.toString())), new StreamResult(out));
} catch(Exception e) {
log.error(e.getMessage(), e);
+ throw new Exception(e);
}
//response.getOutputStream();
More information about the Yanel-commits
mailing list