You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Dave <sn...@gmail.com> on 2006/11/30 16:30:01 UTC

Re: integrating external content

On 11/28/06, John Doe <Lo...@gmx.net> wrote:
> Hi, guys
> I'd like to integrate external content delivered by JSPs into my vm templates. I've already tried to install the velocity-import-tool. But I couldn't get this right. Does anyone have experience in doing so?
> Would be great, if anyone have had done this and could give me a small howto, or some other possibilities in getting external content into my templates.
> Thanks in advance.

I haven't tried this, but I can't see how it would work without a
little Java code. Perhaps you could create a new model object that
knows how to get content from a JSP or Servlet and then add that
object to the Roller config via roller-custom.properties.

(Models must implement org.apache.roller.ui.rendering.model.Model)

Then you could call your new object within page templates:

   $mymodel.getJSPContent("foo/bar.jsp")

- Dave