struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mitchell <jmitch...@apache.org>
Subject RE: Question on <bean:define>
Date Tue, 25 Mar 2003 19:22:35 GMT
On Tue, 2003-03-25 at 12:13, Binaghi Mauro wrote:
> Perfect.
> But I've tryied these also:
> 
> 1) <bean:define id="pathImages" name="ApplicationResources" property="images.uri"/>
> 2) <bean:define id="pathImages" property="images.uri" value="/images"/>
> 
> ...well, thw second one is right. But I want to read the attribute "images.uri" from
my configuration file "ApplicationResources.properties".
> How can I do?

Have you opened the struts-example to see how its done?

> 
> 
> -----Original Message-----
> From: Karr, David [mailto:David.Karr@wamu.net]
> Sent: martedì 25 marzo 2003 17.57
> To: Struts Users Mailing List
> Subject: RE: Question on <bean:define>
> 
> 
> In your case, I think the message isn't quite accurate.  The message should say something
like "... needs to contain EXACTLY one of ...".  You aren't using any of "name", "value",
or body content.  This has nothing to do with your JDK upgrade.
> 
> > -----Original Message-----
> > From: Binaghi Mauro [mailto:mauro.binaghi@vtin.it]
> > Sent: Tuesday, March 25, 2003 6:51 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Question on <bean:define>
> > 
> > I've just upgraded my jdk to 1.4.1_02 version.
> > 
> > Now, where I use (in JSP pages) the instruction:
> > <bean:define id="pathImages" property="images.uri"/>
> > 
> > ...I receive the following error:
> >  javax.servlet.jsp.JspException: Define tag can contain only one of name
> >  attribute, value attribute, or body content
> >    at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:257)
> > 
> > Somebidy knows the problem? :-(
> > 
> > Thx
> > Mauro
> > 
> > ------------------------------------------------------
> > ° Mauro L. Binaghi - Matrix S.p.A.
> > ° Technology - Web Developer & Coordinator
> > ° e-mail: mauro.binaghi@vtin.it
> > ° Phone: +39 0229047.656
> > ° FAX: +39 0229047.564
> > ° C.so Garibaldi, 99
> > ° 20121 Milano, ITALY
> > ° http://www.matrix.it/
> > ° http://www.seat.it/
> > ° http://www.virgilio.it/
> > ------------------------------------------------------
> > 
> > ---------------------------------------------------------------------
> > 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
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.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