You can indeed use scriptlet like this:

<bean:define id="myform" name="myform" type="com.MyForm"/>
<mytags:indicatorEndDisplay
indicatorType="<%=myform.getSampleIndicator()%>"/>

Note: he scriptlet <%=myform.getSampleIndicator()%> must return exactly
the type the setIndicatorType() method (of the tag class that provides
the implementation of indicatorEndDisplay) expects!!!
-----Original Message-----
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 30 mei 2006 14:00
To: Struts Users Mailing List
Subject: Re: Sending run time value to custom tag


Hi
if I have to pass the bean:write value to custom tag How to pass?? I
tried in net but could no get. We are using JSP1.0 So I guess we cant
use EL expression. We can only use scriptlets.but how I can use
bean:write value using scriptlets????

On 5/26/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:
>
> Actually we can. I know I have used 
> <logic:empty><logic:iterate></logic:iterate></logic:empty>
>
> I don't know hot to set up the TLD so that it happens for our custom 
> tags though.
>
> Harsh.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 26, 2006 3:45 AM
> To: user@struts.apache.org
> Subject: RE: Sending run time value to custom tag
>
>
>
> We cannot use tag inside another tags.
>
>
>
> -----Original Message-----
> From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
>
> Sent: Friday, May 26, 2006 12:17 PM
> To: Struts Users Mailing List
> Subject: Sending run time value to custom tag
>
> Hi
> I am sending a runtime value to a custom tag.I am sending the value 
> through bean:write tag but it is not sending the value.i am attaching 
> the sample code.
>
> <mytags:indicatorEndDisplay indicatorType="<bean:write name='myform' 
> property='sampleIndicator'/>"/>
>
> here in the tag class it does not take the value passed through 
> bean:write tag if I pass like below it takes.
>
> <mytags:indicatorEndDisplay indicatorType="true"/>
>
> I have to use bean:write tag.
>
> --
> Thanks and Regards
> Hanmayya Udgiri
>
>
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain proprietary, confidential or privileged 
> information. If you are not the intended recipient, you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately and destroy all copies of this message and any 
> attachments.
>
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of 
> viruses. The company accepts no liability for any damage caused by any

> virus transmitted by this email.
>
>
> www.wipro.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks and Regards
Hanmayya Udgiri

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

Reply via email to