java backed webscript alfresco -
error: "package org.springframework.extensions.webscripts not exist" below imports
code:
import org.springframework.extensions.webscripts.abstractwebscript; import org.springframework.extensions.webscripts.webscriptexception; import org.springframework.extensions.webscripts.webscriptrequest; import org.springframework.extensions.webscripts.webscriptresponse; public class test1 extends abstractwebscript{ public void execute(webscriptrequest req, webscriptresponse res){ string name = "world java"; } }
you're missing relevant classes in classpath. if you're using maven, add following pom:
<dependency> <groupid>org.springframework.extensions.surf</groupid> <artifactid>spring-webscripts</artifactid> <version>1.2.0</version> </dependency>
Comments
Post a Comment