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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -