fix in spring context and in the jsp files
This commit is contained in:
parent
2f693b0f7e
commit
5ceedf36e0
5
pom.xml
5
pom.xml
|
@ -88,6 +88,11 @@
|
||||||
<artifactId>validation-api</artifactId>
|
<artifactId>validation-api</artifactId>
|
||||||
<version>1.0.0.GA</version>
|
<version>1.0.0.GA</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.thoughtworks.xstream</groupId>
|
||||||
|
<artifactId>xstream</artifactId>
|
||||||
|
<version>1.3.1</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
package de.ctdo.bunti.model;
|
package de.ctdo.bunti.model;
|
||||||
|
|
||||||
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@XStreamAlias("buntiDevice")
|
||||||
public abstract class BuntiDevice {
|
public abstract class BuntiDevice {
|
||||||
private int deviceId;
|
private int deviceId;
|
||||||
private String deviceName;
|
private String deviceName;
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
package de.ctdo.bunti.webmodel;
|
package de.ctdo.bunti.webmodel;
|
||||||
|
|
||||||
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@XStreamAlias("deviceUpdate")
|
||||||
public class DeviceUpdate implements Serializable {
|
public class DeviceUpdate implements Serializable {
|
||||||
private int deviceId;
|
private int deviceId;
|
||||||
private Map<String, Object> options;
|
private Map<String, Object> options;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
>
|
>
|
||||||
|
|
||||||
<context:component-scan base-package="de.ctdo">
|
<context:component-scan base-package="de.ctdo">
|
||||||
<context:exclude-filter type="regex" expression="de\.ctdo\.bunti\.web.*" />
|
<!--<context:exclude-filter type="regex" expression="de\.ctdo\.bunti\.web.*" />-->
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
<task:annotation-driven scheduler="myScheduler"/>
|
<task:annotation-driven scheduler="myScheduler"/>
|
||||||
|
|
|
@ -3,15 +3,7 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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">
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||||
|
|
||||||
<bean id="marshaller" class="org.springframework.oxm.xstream.XStreamMarshaller">
|
|
||||||
<property name="aliases">
|
|
||||||
<map>
|
|
||||||
<entry value="de.ctdo.bunti.model.BuntiDevice" key="buntiDevice" />
|
|
||||||
<entry value="de.ctdo.bunti.model.BuntiDMXDevice" key="buntiDMXDevice" />
|
|
||||||
<entry value="de.ctdo.bunti.model.Par56Spot" key="par56Spot" />
|
|
||||||
<entry value="de.ctdo.bunti.model.Strobe1500" key="strobe1500" />
|
|
||||||
</map>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
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">
|
||||||
|
|
||||||
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
|
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
|
||||||
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
|
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
|
||||||
|
@ -22,10 +22,15 @@
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="deviceList" class="org.springframework.web.servlet.view.xml.MarshallingView">
|
<bean id="deviceList" class="org.springframework.web.servlet.view.xml.MarshallingView">
|
||||||
<property name="marshaller" ref="marshaller" />
|
<constructor-arg>
|
||||||
<property name="modelKey" value="deviceList" />
|
<bean class="org.springframework.oxm.xstream.XStreamMarshaller">
|
||||||
|
<property name="autodetectAnnotations" value="true"/>
|
||||||
|
</bean>
|
||||||
|
</constructor-arg>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<context:component-scan base-package="de.ctdo.bunti.web"/>
|
||||||
|
|
||||||
|
|
||||||
<import resource="classpath:marshaller.xml" />
|
<import resource="classpath:marshaller.xml" />
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
pageEncoding="ISO-8859-1"%>
|
pageEncoding="ISO-8859-1"%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
pageEncoding="ISO-8859-1"%>
|
pageEncoding="ISO-8859-1"%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
|
|
||||||
<sun-web-app error-url="">
|
|
||||||
<context-root>/bunti_server</context-root>
|
|
||||||
<class-loader delegate="true"/>
|
|
||||||
<jsp-config>
|
|
||||||
<property name="keepgenerated" value="true">
|
|
||||||
<description>Keep a copy of the generated servlet class java code.</description>
|
|
||||||
</property>
|
|
||||||
</jsp-config>
|
|
||||||
</sun-web-app>
|
|
Loading…
Reference in New Issue