Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tag files extensions

 
Radoslaw Sztando
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I read in Head First Servlets and JSP that tag files allowed extensions are .tag and .tagx
However when I changed name of my very simple tag file from SimpleTagFile.tag to SimpleTagFile.tagx, it stopped working.
Opening JSP which uses this tag file results in

java.lang.RuntimeException: org.apache.jasper.JasperException: Error reading file "/WEB-INF/tags/SimpleTagFile.tagx"
org.apache.jasper.compiler.ImplicitTagLibraryInfo.getTagFile(ImplicitTagLibraryInfo.java:199)


Do I need some additional configuration?
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tagx extension is for tag files with XML syntax, so if your tag file is not well formed XML document, you'll get an error...
 
Radoslaw Sztando
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are tag files with XML syntax covered by SCWCD at all?
 
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!