Alternatives to this hack ?

2002-11-09 Thread Paul Campbell

First, I just used the JSTL taglibs-mailer for the first time. 
It was remarkable how easy and effective it was.

My hack was that I wanted to execute to method
in a bean ef and then to do a getProperty to obtain
the result of the method.

I executed % ef.doToString(); %
and then 
 jsp:getProperty name=ef property=done /

doToString normalizes and concatenates a string into 
a member done.

From my readings of JavaSererPages(Bergsten) the EL
does not provide a technique to execute a method 
such at % ef.doToString(); % which I could use
in the EL based mailer or assign to a variable.

Is there a better way of executing a method that returns
a sting into an EL variable?

Or is that to be fixed in the next release?



--
To unsubscribe, e-mail:   mailto:taglibs-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org




Re: Alternatives to this hack ?

2002-11-09 Thread Shawn Bayern
On Sat, 9 Nov 2002, Paul Campbell wrote:

 First, I just used the JSTL taglibs-mailer for the first time.  It was
 remarkable how easy and effective it was.

Just a quick correction.  The Mailer Taglib is not part of JSTL.  It's an
offering from Jakarta Taglibs, which is not identical with JSTL.

 does not provide a technique to execute a method 
 such at % ef.doToString(); % which I could use
 in the EL based mailer or assign to a variable.
 
 Is there a better way of executing a method that returns
 a sting into an EL variable?

The Mailer Taglib doesn't support the JSTL EL, and the EL in JSTL 1.0
won't let you access that method unless you provide a wrapper class.  In
JSP 2.0, you'll be able to associate that method with a function.

-- 
Shawn Bayern
JSTL in Action   http://www.manning.com/bayern


--
To unsubscribe, e-mail:   mailto:taglibs-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org