Maybe the variable $portlet is handled as an object of the class
AbstractPortlet. So you can only access the methods of AbstractPortlet.
If that is the thing, you have to make a typecast to access your method with
the name getFoo(). Try it like this:
${((MyPortlet)portlet).getFoo()}
I hope that will work.
Matthias Wimmer
> -----Original Message-----
> From: Josh Hone [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to interact Velocity and Jetspeed?
>
>
> Did you try to use what you want in the Action class? You
> can build a
> portlet from the rundata object that can then be used in the
> Action class.
> However, in general the portlet should be accessible in the way you
> described I believe. I have not tried it, however, and
> probably the Action
> class is a better place to attach functions since it is the
> code behind the
> template.
>
> Josh Hone
>
>
> >From: Sandeep Nijsure <[EMAIL PROTECTED]>
> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: How to interact Velocity and Jetspeed?
> >Date: Mon, 8 Jul 2002 11:59:31 -0500 (CDT)
> >
> >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 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?
> >
> >Thanx a lot
> >Sandeep
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>