As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean id="webscript.calendar.display.get" class="de.landhausanders.wcm.client.calendar.CalendarWebScript" parent="webscript"> <property name="repository" ref="repositoryHelper" /> </bean>
<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();