I'm rather new to JSP/tags, so I don't know how difficult it
would be to implement your solution. I tend to prefer my
solution because it doesn't require as much typing.

Stephen

----- Original Message -----
From: "Chris Butler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 9:02 AM
Subject: RE: Bean:message with args


> just curious...  what about a minor enhancement to do it
like this:
>
> <bean:message key="prompt.password.sent">
>    <bean:write name="someBean" property="email"/>
>    <bean:write name="someBean" property="otherAttr"/>
> </bean:message>
>
> the listed internal body tags would be handled as
> arg0, arg1, arg2, etc.
>
> not that this is how yours works, but i kinda think
> the above would be desirable because you could set
> anything into the arguments...  just a thought tho.
>
> thoughts?
>
> Chris
>
> At 10:34 AM 5/8/2001 +0100, Jon.Ridgway wrote:
> >Hi Stephen,
> >
> >Your solution sounds like its just what I'm after. I
would greatly
> >appreciate a look at the code.
> >
> >Jon.
> >
> >-----Original Message-----
> >From: Stephen Schaub [mailto:[EMAIL PROTECTED]]
> >Sent: 04 May 2001 23:34
> >To: [EMAIL PROTECTED]
> >Subject: Re: Bean:message with args
> >
> >
> > > Is there a way to acheive the following :
> > > <bean:message key="prompt.password.sent"
arg0="<bean:write
> > > name="email"/>"/>
> > > without resorting to scriplets
> >
> >I was looking for a way to do this a while back;
currently
> >you have to resort to a scriptlet. I proposed and created
an
> >implementation that allows you to do this:
> >
> ><bean:message key="prompt.password.sent" arg0="{email}"/>
> >
> >The { } in argX parameters tell my modified bean:message
tag
> >to use the bean introspection to insert the value of the
> >bean. If you're interested in the code, I'll be glad to
> >share it.
> >
> >Stephen
> >
> >----- Original Message -----
> >From: "Jon.Ridgway" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, May 04, 2001 10:36 AM
> >Subject: Bean:message with args
> >
> >
> >Hi all,
> >
> >Is there a way to acheive the following :
> >
> ><bean:message key="prompt.password.sent"
arg0="<bean:write
> >name="email"/>"/>
> >
> >without resorting to scriplets, ie :
> >
> ><bean:parameter id="email" name="email"/>
> ><bean:message key="prompt.password.sent"
arg0="<%=email>"/>
> >
> >would work but just doesn't sit right with me.
> >
> >Any ideas.
> >
> >Jon.
>
>

Reply via email to