Spring integration and loading templates from repository

72 views
Skip to first unread message

jacek...@gmail.com

unread,
Apr 17, 2015, 5:44:05 AM4/17/15
to hippo-c...@googlegroups.com
Hello,

Integration Spring beans with Hippo was pretty much easy with help of TestSuite. After this process I've got integration that for rendering components uses jsp files stored on disk. My goal is to provide freemarker templates stored in repository to render Spring components.
I've tried to replace template's property hst:renderpath to hst:script, but this simply doesn't work and as a result I see:

Component exception caught on window 'register-container' with component 'org.hippoecm.hst.component.support.spring.SpringBridgeHstComponent': java.io.FileNotFoundException: The requested resource (/site/hst:hst/hst:configurations/myapp/hst:templates/contactspring) is not available at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:807)

Is this possible to replace jsp with freemarker stored in repository? If so, is there any available material that could help?

Jeroen Reijn

unread,
Apr 17, 2015, 5:53:56 AM4/17/15
to hippo-c...@googlegroups.com
Hi,

yes this is for sure possible. Have you seen the template support documentation page [1] ? It describes exactly what you need to do to get freemarker working from the repository.


Jeroen

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Jeroen Reijn
Hippo

Amsterdam office - Oosteinde 11, 1017 WT Amsterdam
Boston office - 745 Atlantic Ave, Eight Floor, Boston MA 02111, United states of America.

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

http://blog.jeroenreijn.com | @jreijn | http://about.me/jeroenreijn

Jasper Floor

unread,
Apr 17, 2015, 5:54:52 AM4/17/15
to hippo-c...@googlegroups.com
HI,

according to http://www.onehippo.org/library/concepts/web-application/hst-freemarker-support.html:
"Using the property hst:script however requires that the template node name ends with .ftl. "

so is that maybe your problem?

mvg,
Jasper

On Fri, Apr 17, 2015 at 11:44 AM, <jacek...@gmail.com> wrote:

--

jacek...@gmail.com

unread,
Apr 17, 2015, 6:05:26 AM4/17/15
to hippo-c...@googlegroups.com
Jasper, that's the answer, so simple and so easy to overlook! Thank you.

Jacek
Reply all
Reply to author
Forward
0 new messages