It didn't print after URL url = new URL (filepath); filepath was a path to DAM like /content/project/path/filename.pdf then I added localhost:4502 to itbut now it is not printing anything.... so i stopped and doing another task. seems bad luck, hahaha
hi thank you for trying to help me.All components of this projects have:<jsp:useBean id="ouritem" scope="page" class="package.components.....Component"></jsp:useBean><jsp:setProperty name="ouritem" property="slingRequest" value="<%=slingRequest %>"/>
then inside JSP ${ouritem.downloadText} in Java: public class ......Component extends AbstractComponent {.......... public String getDownloadText() { //return getStringProperty("jcr:textAsset"); int fileSize = 0; String filePathName = getDownloadUrl(); String fileType = filePathName.sub...
Hi,It is one of components Java bean class.I access to the web page via WCM in localhost:4502 and I see the component, but the file size is shown as 0.00kbButI don't see any log.I've used System.out.println("") too.
oh not mine was:private final Logger log = LoggerFactory.getLogger(getClass()); I added this, compiled and deployed. but it is still not writing log.should i restart?