struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff_Mycha...@nlgroup.ca
Subject Re: nested custom tag
Date Sat, 08 Feb 2003 22:33:07 GMT


<bean:define id="myValue" name="bean" property="property"/>
<myTag id="<%= myValue %>"/>


you may also need to specify your type:
<bean:define id="myValue" name="bean" property="property" type
="java.lang.String"/>




"Derek Shen" <dshen1028@hotmail.com> on 02/08/2003 04:24:08 PM

Please respond to "Struts Users Mailing List"
       <struts-user@jakarta.apache.org>

To:    struts-user@jakarta.apache.org
cc:

Subject:    nested custom tag


trying to figure out how can I put struts tag into the attribute of another
customer tag.

e.g.

<myTag id="<bean:write name="bean" property="property"/>"/>

The container does not like it. What's the way to do it?

Thanks
ds




>From: Jarnot Voytek Contr AU HQ/SC <Voytek.Jarnot@MAXWELL.AF.MIL>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
>Subject: RE: form naming Date: Wed, 5 Feb 2003 15:15:28 -0600
>
>struts names the form for you, did you try 'View Source'?  the form name
>will be the same as the form-bean name in struts-config.xml, all you need
>in
>html:form is the action.
>
>--
>Voytek Jarnot
>Quidquid latine dictum sit, altum viditur.
>
>
> > -----Original Message-----
> > From: Vinay [mailto:vinay@mdp.net]
> > Sent: Wednesday, February 05, 2003 3:06 PM
> > To: Struts Users Mailing List
> > Subject: Re: form naming
> >
> >
> > Yes I looked at the file struts-html.tld
> > I did the following
> >
> > <html:form action="holdupdate.do" name="transactions">
> >
> > I got the following error
> >
> > org.apache.jasper.JasperException: Must specify type
> > attribute if name is
> > specified
> >
> > Then I went ahead and did the following
> >
> > <html:form action="holdupdate.do" name="transactions"
> > type="com.mdp.Hold">
> > <!-- Hold is a Java Bean Class -->
> >
> > <!-- code -->
> >
> > </html:form>
> >
> > I got the following error
> >
> > org.apache.jasper.JasperException: Exception creating bean of class
> > net.mdp.hold.HoldTrans: java.lang.ClassCastException:
> > net.mdp.hold.HoldTrans
> >
> >
> > This is just for JavaScript purposes, I don't know what it is
> > looking for
> >
> > Thanks for any help
> >
> > Vinay
> >
> >
> >
> > ----- Original Message -----
> > From: "Pani, Gourav" <gourav.pani@brightpoint.com>
> > To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> > Sent: Wednesday, February 05, 2003 3:51 PM
> > Subject: RE: form naming
> >
> >
> > > Please consult the struts-html.tld file for syntax
> > formatting issues.
> > >
> > > -----Original Message-----
> > > From: Vinay [mailto:vinay@mdp.net]
> > > Sent: Wednesday, February 05, 2003 3:48 PM
> > > To: Struts Users Mailing List
> > > Subject: form naming
> > >
> > >
> > > How can I name a
> > >
> > > <html:form>
> > >
> > >
> > > <form name="transactions" method=POST action=ActionServlet>
> > >
> > > How can I do this using <html:form>
> > >
> > > I have to do JavaScript functions using that.
> > >
> > >
> > > Thanks
> > >
> > > help appreciated
> > >
> > > Vinay
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org








---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message