The following illustration shows CSS and JS files located in an AEM client libs folder.
For more information about a ClientLibs folder, see Using Client-Side Libraries.
Note: There are other ways to get files into a ClientLibs folder. For example, you can use the CRXDE tool to drag and drop files from the local desktop to a ClientLibs folder. However, there are drawbacks to using CRXDE to drag and drop files from the desktop to an AEM client libs folder.
To develop a Java Swing application that posts files to an AEM client libs folder, you use Java APIs located in the org.apache.http package. The APIs located in this package lets you post files to a custom AEM Sling Servlet. The Sling Servlet saves the file in the specified ClientLibs folder using the JCR API.
The following illustration shows the Java client application that is created in this development article.
A Java client application that posts files to an AEM ClientLibs folder |
To read this development article, click http://helpx.adobe.com/experience-manager/using/post_files.html.
To watch the video, click:
Join the Adobe Experience Cloud Community
Join the Adobe Experience Cloud Community by clicking this banner
I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.
Twitter: Follow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.
YouTube: Subscribe to the AEM Community Channel.
Twitter: Follow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.