03-29-2011 02:28 PM
<bean id="webscript.calendar.display.get"
class="de.landhausanders.wcm.client.calendar.CalendarWebScript"
parent="webscript">
<property name="repository" ref="repositoryHelper" />
</bean>
03-30-2011 05:08 AM
03-30-2011 02:29 PM
<bean id="webscript.calendar.display.get"
class="com.samples.wcm.client.MyWebScript"
parent="webscript">
<property name="webSiteService" ref="webSiteService"/>
</bean>
private WebSiteService webSiteService;
WebSite website = webSiteService.getWebSite("localhost", 8080, "wcmqs");
Asset textfile= website.getAssetByPath("/section/file.txt");
ContentStream cs = textfile.getContentAsInputStream();
InputStream input = cs.getStream();
String text = "";
int data = input.read();
while(data != -1) {
text = text + (char) data;
data = input.read();
}
input.close();
03-31-2011 03:49 AM
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.