Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL and JSP Documents  RSS feed

 
Roy Pozarelli
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm in the process of studying for the SCWCD/OCPJWCD certification. I going over the specs (JSTL, JSP, EL, Servlet, etc.) and several books, I've come across a question that I don't seem to have an obvious answer to. A JSP Document - is an XML compliant file. Using JSTL/EL in a JSP Document is there to avoid putting scripting code into that "XML" document. However, what about the scripting directive taglib? It seems to me that <%@ taglib ... %> is scripting? Am I wrong in that opinion? I don't see another way to let the JSP know that I'm using a taglib that follows the XML requirements? Is my question due to a lack of in depth knowledge of XML?
 
Paul Clapham
Sheriff
Posts: 22195
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, it's scripting. But see this page which explains what to do instead of a taglib directive in the XML format.
 
Roy Pozarelli
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that'll do it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!