struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Shen" <dshen1...@hotmail.com>
Subject Re: nested custom tag
Date Sat, 08 Feb 2003 22:46:02 GMT
Thanks.

Maybe that's the only way.

Just wondering how come I can not nest one custom tag inside the attribute 
of another custom tag. I know that we can nest one tag inside the content 
body of another custom tag.

Maybe jsp should come up with a better way to handle it. Basically, the 
container needs to evaluate/process the inner tag first and use the output 
of the inner tag to process the outter tag.

>From: Jeff_Mychasiw@nlgroup.ca
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Subject: Re: nested custom tag
>Date: Sat, 8 Feb 2003 16:33:07 -0600
>
>
>
><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


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


---------------------------------------------------------------------
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