tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Scriplet OK, JSTL OK - result different!!
Date Mon, 19 Jul 2004 15:48:14 GMT
it didn't need to extends Properties, so I removed that extension, and it all started working.

ADC


> -----Original Message-----
> From: Kris Schneider [mailto:kris@dotech.com]
> Sent: 19 July 2004 16:46
> To: Tag Libraries Users List
> Subject: RE: Scriplet OK, JSTL OK - result different!!
> 
> 
> Which implements Map...
> 
> Quoting Allistair Crossley <Allistair.Crossley@QAS.com>:
> 
> > sorry i meant to let you all know .. my bean was extending
> > java.util.Properties
> > 
> > AC
> > 
> > > -----Original Message-----
> > > From: Karr, David [mailto:david.karr@wamu.net]
> > > Sent: 19 July 2004 16:33
> > > To: Tag Libraries Users List
> > > Subject: RE: Scriplet OK, JSTL OK - result different!!
> > > 
> > > 
> > > It might be interesting to see what it does with the following:
> > > 
> > >  <c:out value="${node.title}"/>
> > >  <c:if test="${empty node}">
> > >  	is empty node
> > >  </c:if>
> > >  <c:if test="${empty node.title}">
> > >  	is empty node.title
> > >  </c:if>
> > > 
> > > > -----Original Message-----
> > > > From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com] 
> > > > 
> > > > OK guys, this is an odd one. Have been using JSTL 1.1 for a 
> > > > short while with no problems until today. I am adding a 
> > > > request attribute called "node". The following is in my JSP...
> > > > 
> > > > <%
> > > > 	Node node = (Node) request.getAttribute("node");
> > > > 	out.println(node.getTitle());
> > > > %>
> > > > 
> > > > <c:if test="${empty requestScope.node}">
> > > > 	is empty node
> > > > </c:if>
> > > > 
> > > > The top scriplet section DOES print out the value of the node 
> > > > title, e.g "A Title". The JSTL IF block DOES print "is empty 
> > > > node". Therefore JSTL _is_ working, just not _finding_!
> > > > 
> > > > How can this be that JSTL is not able to find my "node" 
> > > > object but traditional scriplet can?
> > > 
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: 
> taglibs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> taglibs-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> > 
> > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
> > -------------------------------------------------------
> > QAS Ltd.
> > Developers of QuickAddress Software
> > <a href="http://www.qas.com">www.qas.com</a>
> > Registered in England: No 2582055
> > Registered in Australia: No 082 851 474
> > -------------------------------------------------------
> > </FONT>
> 
> -- 
> Kris Schneider <mailto:kris@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 

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


Mime
View raw message