Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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

Tag file

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I want to speak a little about these "strange" tag file.
1 ) from JSP.8.1 of JSP 2.0

As is the case with
JSP files, the actual tag may be composed of a top file that includes other files that
contain either a complete tag or a segment of a tag file. Just as the recommended
extension for a segment of a JSP file is .jspf, the recommended extension for a
segment of a tag file is .tagf.


Does it really mean that I can't call a tag file from an other tag file ?
I've tried to in Tomcat 5.0 but get an error.
When I include a jsp file that calls the tag file it works like it seems to be said in specs.
Is it really the good manner to proceed ?
I thought that I could call a tag file from an other one.
2) from Tomcat 5.0, I think there is a bug about fragment in tag file :
When you declare an attribute fragment not required, and that the calling page doesn't create the attribute, and that the tag file has a jsp:invoke for this fragment, it fires a NullPointerException. But the spec says

If the fragment identified by the given name is null,
<jsp:invoke> will behave as though a fragment was passed in that produces no
output.


Have you met the same problem?
thanks
 
Grow a forest with seedballs and this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic