Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<c:out Query

 
Aditi Kamra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use <cut , i have downloaded jstl1.2 jar and placed in my webapp lib folder.
My apache tomact version is 6.0.18, and in my web.xml i have mentioned

><web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">

But when i am trying to put
<cut value="<b></b> Bold letters" escapeXML="false"/> in my JSP
I am getting this exception
org.apache.jasper.JasperException: /actionBean.jsp(47,0) Attribute escapeXML invalid for tag out according to TLD


 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try with "escapeXml" instead of "escapeXML".
 
Aditi Kamra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It worked ...Thanks a lot .. it was a silly mistake from my side..

Also i had another query
Does the default attribute of <cut works only for String properties of a bean?
what if i wanna print default for an int property in my bean if that property is null...I tried giving default for an int property , but its printing 0.>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what if i wanna print default for an int property in my bean if that property is null

You may recall from SCJP that primitives are never null. int variables default to 0.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic