02-13-2010 02:53 PM
HttpClient client = new HttpClient();
client.getHostConfiguration().setHost("localhost", 8080);
//Servlet.getContext("URL");
String strURL="http://localhost:8080/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/S...";
System.out.println("strURL"+strURL);
HostConfiguration h = new HostConfiguration();
h.setHost("localhost", 8080);
GetMethod get = new GetMethod(strURL);
try {
int result = client.executeMethod(h,get);
System.out.println("Servelt Call for Excute java script Result == " + result);
} catch (HttpException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
02-14-2010 05:50 AM
02-15-2010 12:50 AM
02-15-2010 01:29 AM
NameValuePair[] kvps =
new NameValuePair[]{new NameValuePair("ticket", ticket),
new NameValuePair("scriptPath", "/Company Home/Data Dictionary/Scripts/assignworkflow.js"),
new NameValuePair("contextPath", "/Company Home/admin_signup.txt")};
get.setQueryString(kvps);
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.