Main Content

Magnolia Community Forums: Get help with Magnolia: CMS Tags are not rendered in JSP's in Magnolia 4.5.1


  • danielkueffer
    danielkueffer
    Full name: Daniel Kueffer
    Posts: 2
    Last post: Mar 14, 2012 1:59:07 PM
    Registered on: Mar 14, 2012
    CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #1 by danielkueffer on Mar 14, 2012 9:58:52 AM

    Hello,

    I'm working with the Magnolia Tomcat Bundle 4.5.1
    I'm working with JSP Templates. My main page template looks as follows:

    <?xml version="1.0" encoding="UTF-8" ?>
    <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:cms="cms-taglib"
    xmlns:cmsu="cms-util-taglib"
    xmlns:c="http://java.sun.com/jsp/jstl/core">

    <jsp:directive.page contentType="text/html; charset=UTF-8" />

    <![CDATA[<!DOCTYPE html>]]>
    <html>
    <head>
    <title><cms:out nodeDataName="title"/></title>
    </head>
    <body>
    <cms:init/>

    <h1><cms:out nodeDataName="title"/></h1>
    </body>
    </html>
    </jsp:root>


    My problem is, that the cms Tags are not rendered. They are just printet out in the source code. In Catalina out is no error. And the renderType in the Page Template is set to jsp.

    In Magnolia 4.4 works everything as usual. So i'm not sure if something is wrong with my setup in 4.5.1?

    Thanks in advance for a response.

  • breun
    breun
    Full name: Nils Breunese
    Posts: 277
    Last post: Apr 3, 2014 2:04:29 PM
    Registered on: Sep 16, 2010
    Re: CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #2 by breun on Mar 14, 2012 10:10:05 AM

    Daniel Kueffer wrote:

    > My problem is, that the cms Tags are not rendered. They are just printet out in the source code. In Catalina out is no error. And the renderType in the Page Template is set to jsp.
    >
    > In Magnolia 4.4 works everything as usual. So i'm not sure if something is wrong with my setup in 4.5.1?

    I haven't tried 4.5 myself yet, but the release notes mention a migration process from 4.4.6 to 4.5: http://documentation.magnolia-cms.com/releases/4-5-1.html#HowtomigratefromMagnoliaCMS446 There are also some renamed dependencies and magnolia-templating-jsp is a new optional dependency. It looks like you need that one if you use JSP in your templates.

    Nils.
    ------------------------------------------------------------------------
    VPRO www.vpro.nl
    ------------------------------------------------------------------------

  • danielkueffer
    danielkueffer
    Full name: Daniel Kueffer
    Posts: 2
    Last post: Mar 14, 2012 1:59:07 PM
    Registered on: Mar 14, 2012
    Re: CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #3 by danielkueffer on Mar 14, 2012 1:59:07 PM

    Thanks for the reply,

    I placed now magnolia-templating-jsp, magnolia-templating-compatibility-taglib-cms and magnolia-templating-compatibility-taglib-utility in WEB-INF/lib.

    But the problem remains the same, cms tags are still not rendered. Is there something else i have to do?

  • davidebz
    davidebz
    Full name: Davide Montesin
    Posts: 8
    Last post: Mar 30, 2012 12:48:51 AM
    Registered on: Aug 18, 2011
    Re: CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #4 by davidebz on Mar 22, 2012 11:12:41 PM

    Hi, where you find the magnolia-templating-compatibility?

    In magnolia 4.5 how is possible to make the page editable in jsp? What is the clean way?

    If I am following this link:

    http://documentation.magnolia-cms.com/templates/introduction.html#Makingthepageeditable

  • pbaerfuss
    pbaerfuss
    Full name: Philipp Bärfuss
    Posts: 258
    Last post: Jun 17, 2013 6:32:46 PM
    Registered on: Nov 3, 2010
    Re: CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #5 by pbaerfuss on Mar 23, 2012 9:16:05 AM

    Hi,

    The 4.5 templating has changed. We think its much easier to learn and we support more use cases (inheritance, auto-generation, ...) out of the box. We have also alligned the basic templating and STK. Now that STK is GPL licensed as well, you should consider using it for your projects.

    We are currently writing a 'Template Migration Reference Card', but for the moment the best resources are:

    - New templating tutorial
    --> http://documentation.magnolia-cms.com/templates/introduction.html

    - Templating Quick Reference (will became the migration reference card)
    --> http://documentation.magnolia-cms.com/dms/templates/Magnolia-CMS-Templating-4-5-Quick-Reference/Magnolia%20CMS%20Templating%204.5%20Quick%20Reference.pdf

    - Release Notes
    --> http://documentation.magnolia-cms.com/releases/4-5-1.html

    - Migration Documentation (see sub pages)
    -- http://wiki.magnolia-cms.com/display/DEV/How+to+migrate+your+project

    For the moment we recommend to wait with migrations of projects until migration tooling and documentation is a bit more polished. But in case you start a new project it is best to go with 4.5, as 5.0 will ship with the same templating.

    - philipp

  • davidebz
    davidebz
    Full name: Davide Montesin
    Posts: 8
    Last post: Mar 30, 2012 12:48:51 AM
    Registered on: Aug 18, 2011
    Re: CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #6 by davidebz on Mar 23, 2012 6:13:30 PM

    Hi Philipp,

    I am following the link "New templating tutorial" in the section "Making the page editable" there are two version: Freemarker and JSP. I have copied the JSP version. The taglib statement give me and error. It look like the Magnolia CE 4.5.1 does not contains this taglib.

    Is the documentation out of sync? I am missing somethink? Is the taglib optional? If yes where can I download it?

  • pbaerfuss
    pbaerfuss
    Full name: Philipp Bärfuss
    Posts: 258
    Last post: Jun 17, 2013 6:32:46 PM
    Registered on: Nov 3, 2010
    Re: CMS Tags are not rendered in JSP's in Magnolia 4.5.1
    #7 by pbaerfuss on Mar 26, 2012 9:22:08 AM

    Thanks for the feedback. We currently bundle only FreeMarker but I agree that this is an unnecessary obstacle for JSP developers.

    I created a ticked to change that.
    --> http://jira.magnolia-cms.com/browse/MAGNOLIA-4348

    Fro the moment you find it in the samples add-on (if you download the bundle) together with JSP samples.

    Note: you can get all artifacts from our nexus (maven repository). The link in this case would be:
    --> http://nexus.magnolia-cms.com/index.html#nexus-search;gav~info.magnolia~magnolia-templating-jsp~4.5.1~~

    - philipp

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon https://www.google.com/accounts/o8/id
  • icon https://me.yahoo.com/