Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tagfiles hate Taglibs

 
Sean Brown
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have recently come to know (the hard way) that JSP Tag files cannot use taglibs.
I am looking for alternatives and am asking to see if anyone knows a good way to have reusable JSP content.
I have tried include()s, but I can't seem to get the buffer to flush correctly and either the include terminates the response, or it is written before the including stream.
Any help or links would be appreciated, thanks.
--RProgrammer
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64822
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"RProgrammer",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64822
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by RProgrammer:
I have recently come to know (the hard way) that JSP Tag files cannot use taglibs.


I am afraid that you have been misinformed. It is most certainly possible to use other taglibs within tag files.
 
Sean Brown
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There, I presume that name is more acceptable.


Sigh.
I believe it is called a Heisenbug when speaking of the problem magically causes it to be resolved. I am used to that in Windows, but I never expected to see it on a Linux Server .
In any case it is now resolved. Although I didn't attempt this many more times because so many people actually said you couldn't use taglibs. I don't know what fixed it, but I am glad it is fixed.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64822
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As am I. Welcome to the Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic