1 Reply Latest reply on Mar 13, 2013 7:04 PM by Sham HC

    Include text asset into a JSP

    deepbluez Level 1

      Hi,

       

      I need to include some paragraphs which are saved in DAM as an asset into a jsp page.

       

      i.e., I have an asset named info.txt. It's saved under /content/dam/mysite/info.txt.

       

      In my page.jsp, I'd like to have the text content in info.txt displayed in jsp, what is the best approach? Does CQ have a built-in tag to do that sort of thing? i.e., instead of using <cq:include> to include jsp, can a text file be included and CQ renders the content of it automatically? Or do we have to read the content of the text node to render?