Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag file

 
Ivan Matmati
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic