Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

jstl help

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

weblogic.servlet.jsp.CompilationException@150ed18 ==> weblogic.servlet.jsp.CompilationException: Failed to compile JSP /ClosedCustomerFile.jsp
ClosedCustomerFile.jsp:988:20: The page failed validation from validator: "Encountered illegal body of tag "fmt:formatNumber" tag, given its attributes.".
<fmt:formatNumber value="${invoiceDetail.itemRate}" type= <c:if test="${invoiceDetail.rentalDailyPercentage== 'P'}">"percent"</c:if> />
^--------------------------------------------------------^

Hi! please help to append the 'percent' as an attribute in the 'fmt' tag satisfying the inner condition. Thanks!
 
Marshal
Posts: 67416
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"urmypal", please check your private messages for an important administrative matter. Thanks.

I also removed the red text -- it was unreadable. Please avoid over-use of color in your posts.

 
Bear Bibeault
Marshal
Posts: 67416
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a custom tag as the attribute value of another custom tag.
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic