From: <[EMAIL PROTECTED]>
> I'm doing some tags at the moment, and need to do user name and password
> for http requests and maybe other places.
>
> What's the best way of doing this in jelly? Have subtags that check for a
> method on their parent? Store the info in a variable somewhere in the
> context? ....?

I think using variables (which may come from build.properties like Ant) to
pass information around is typically the simplest. Then a Tag which requires
the user name and password can have bean properties for these values which
can then be passed in from any variables available. e.g.

<property file="${user.home}/build.properties" />
<property file="build.properties" />
...
<my:tag user="${my.username}" password="${my.password}"/>


Obviously you can always hard code these things in scripts if you wish...

<my:tag user="james" password="foo"/>

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to