• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about JSTL import

 
Eric Sexton
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question stems from my IDE flagging my <c:if> statements as 'unknown tags' even though they are all working just fine. Anyhow, when I import the JSTL tag library I use the statement:

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

Now, I was under the assumption that if I typed in the URI into my browser that I would see the TLD. When I do type it in, I get a page error on the JSP site. Am I wrong to assume that I should see the TLD when putting the URI into my browser? I'm curious as to the detail of what exactly the taglib tag physically does and how it does it. Any insight would be great. Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am I wrong to assume that I should see the TLD when putting the URI into my browser?


Yes. It's just an identifier, not a URL.

It is used to match the URI to known TLDs, loading the one that matches it.

The known TLDs will be either any identified in web.xml, or found through auto-discovery by looking in the available jar files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!