10-03-2011 04:57 AM
.jar file in <tomcat>/webapps/share/WEB-INF/lib or .class files in <Alfresco>/tomcat/webapps/alfresco/WEB-INF/classes/<class folder structure>
web-scripts-application-context.xml - <tomcat>/webapps/share/WEB-INF/classes/org/springframework/extensions/webscripts
simple.get.desc.xml - <tomcat>/webapps/share/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/demo
10-04-2011 03:54 AM
10-04-2011 04:18 AM
10-04-2011 05:13 AM
public class SimpleWebScript extends DeclarativeWebScript {
public SimpleWebScript() {
}
protected Map<String, Object> executeImpl(WebScriptRequest req,
Status status) {
Map<String, Object> model = new HashMap<String, Object>();
model.put("hello", "Hello World");
return model;
}
}
<webscript>
<shortname>The World's Simplest Webscript</shortname>
<description>Hands back a little bit of JSON</description>
<url>/demo/simple</url>
<authentication>none</authentication>
<format default="">argument</format>
</webscript>
<html>
<head>
<title>Hello World</title>
</head>
<body>
${hello}
</body>
</html>
10-04-2011 06:09 AM
10-04-2011 06:16 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN 2.0//EN' 'http://www.springframework.org/dtd/spring-beans-2.0.dtd'>
<beans>
<bean id="webscript.org.alfresco.demo.simple.get" class="org.alfresco.module.demoscripts.SimpleWebScript" parent="webscript" />
</beans>
10-04-2011 12:43 PM
10-04-2011 03:23 PM
10-04-2011 05:16 PM
10-05-2011 12:07 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.