• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL and JSP Documents

 
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: 21963
36
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!