Sandeep Nijsure wrote:
> Hi all,
>
> If my Jetspeed portlet has a method public ConcreteElement getFoo(), can
> it be called from a Velocity template (a .vm file?) I tried using
> $portlet.getFoo(), but that does not work.
I am not sure that Velocity knows about ConcreteElements. You may need
a String getStringFoo() { return getFoo().toString();}
See Velocity's documentation http://jakarta.apache.org/velocity
>
> I suspect I can only use getContent(Rundata) and not any other method. But
> if I want multiple pieces of info. from the Java portlet code, how do I do
> it?
See the org.apache.jetspeed.portal.portlets.VelocityPortlet. It, via
context.put( variable_name, value ), add variables that are available
to the .vm file.
>
> Thanx a lot
> Sandeep
>
>
Paul Spencer
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>