diff --git a/pom.xml b/pom.xml index eae8007..f5e5b40 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,11 @@ validation-api 1.0.0.GA + + com.thoughtworks.xstream + xstream + 1.3.1 + diff --git a/src/main/java/de/ctdo/bunti/model/BuntiDevice.java b/src/main/java/de/ctdo/bunti/model/BuntiDevice.java index 04f3fd3..88b1990 100644 --- a/src/main/java/de/ctdo/bunti/model/BuntiDevice.java +++ b/src/main/java/de/ctdo/bunti/model/BuntiDevice.java @@ -1,7 +1,10 @@ package de.ctdo.bunti.model; +import com.thoughtworks.xstream.annotations.XStreamAlias; + import java.util.Map; +@XStreamAlias("buntiDevice") public abstract class BuntiDevice { private int deviceId; private String deviceName; diff --git a/src/main/java/de/ctdo/bunti/webmodel/DeviceUpdate.java b/src/main/java/de/ctdo/bunti/webmodel/DeviceUpdate.java index 0bee310..9d6c97a 100644 --- a/src/main/java/de/ctdo/bunti/webmodel/DeviceUpdate.java +++ b/src/main/java/de/ctdo/bunti/webmodel/DeviceUpdate.java @@ -1,8 +1,11 @@ package de.ctdo.bunti.webmodel; +import com.thoughtworks.xstream.annotations.XStreamAlias; + import java.io.Serializable; import java.util.Map; +@XStreamAlias("deviceUpdate") public class DeviceUpdate implements Serializable { private int deviceId; private Map options; diff --git a/src/main/resources/applicationContext.xml b/src/main/resources/applicationContext.xml index 5e3ad1b..b2c44f5 100644 --- a/src/main/resources/applicationContext.xml +++ b/src/main/resources/applicationContext.xml @@ -9,7 +9,7 @@ > - + diff --git a/src/main/resources/marshaller.xml b/src/main/resources/marshaller.xml index e8bf763..6920b6c 100644 --- a/src/main/resources/marshaller.xml +++ b/src/main/resources/marshaller.xml @@ -3,15 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> - - - - - - - - - - + + diff --git a/src/main/webapp/WEB-INF/dispatcher-servlet.xml b/src/main/webapp/WEB-INF/dispatcher-servlet.xml index e6e3438..ebaaf1f 100644 --- a/src/main/webapp/WEB-INF/dispatcher-servlet.xml +++ b/src/main/webapp/WEB-INF/dispatcher-servlet.xml @@ -1,8 +1,8 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:context="http://www.springframework.org/schema/context" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> @@ -22,10 +22,15 @@ - - + + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/device.jsp b/src/main/webapp/WEB-INF/jsp/device.jsp index 3f273e0..396730e 100644 --- a/src/main/webapp/WEB-INF/jsp/device.jsp +++ b/src/main/webapp/WEB-INF/jsp/device.jsp @@ -3,6 +3,7 @@ pageEncoding="ISO-8859-1"%> <%@taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> diff --git a/src/main/webapp/WEB-INF/jsp/deviceList.jsp b/src/main/webapp/WEB-INF/jsp/deviceList.jsp index 087e74a..6df75ff 100644 --- a/src/main/webapp/WEB-INF/jsp/deviceList.jsp +++ b/src/main/webapp/WEB-INF/jsp/deviceList.jsp @@ -3,6 +3,7 @@ pageEncoding="ISO-8859-1"%> <%@taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> diff --git a/src/main/webapp/WEB-INF/sun-web.xml b/src/main/webapp/WEB-INF/sun-web.xml deleted file mode 100644 index 8a5cf34..0000000 --- a/src/main/webapp/WEB-INF/sun-web.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - /bunti_server - - - - Keep a copy of the generated servlet class java code. - - -