From: "Christian Sell" <[EMAIL PROTECTED]>
> Hello,
>
> I just wrote a script using the <j:echo message="dada"/> tag, which I
> assumed was certainly available in core - but alas! Nowhere.
>
> What about having that?
There's an <echo> tag in the Ant tag library which uses Ant's EchoTask.
Or the log tag library uses commons-logging (so you can log to log4j, JDK
1.4 logging or logkit)
<log:info> this is some text ${customer.name} </log:info>
<log:warn> I can contain other tags if I wish <j:useBean var="b"
class="Foo"/> ${b.getSomething()} </log:warn>
> And what about some tag to enforce availability of variables, for
> example if a script requires parameters to be set before invoking it?
You could use the assertions from the JUnit library...
<test:assert test="${foo != null}"/>
<test:assert test="${bar != null}">You must define the bar attribute to run
this script</test:assert>
Though if this doesn't quite match your requirements I'm sure another
similar kind of tag could be created.
James
-------
http://radio.weblogs.com/0112098/
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>