Forums Register Login

Taglet won't work

+Pie Number of slices to send: Send
Hi

I'm trying out Bear's "Poor man's tag files" for JSP 1.2 - the Taglets, but it doesn't work. I'm trying to run the example he gives on http://radio.javaranch.com/bear/2005/01/26/1106722509000.html.

The jsp fragment:


I call the tag like the following:



Now, instead of displaying "The value of whatever attribute is: Hi there!" It's displaying
"The value of whatever attribute is:
<%= request.getAttribute( ExampleTagletTag.KEY_WHATEVER ) %>

What am I doing wrong here?
+Pie Number of slices to send: Send
It's actually not evaluating ANY tags - in the source, it just outputs the fragment as is, with code and everything! It doesn't evaluate ANY of the tags.

Any idea what could be wrong?
+Pie Number of slices to send: Send
Did you name the "tag file" with .jsp? If so, when it is included by the request dispatcher is should be processed just like a <jsp:include>
+Pie Number of slices to send: Send
There's no smiley down there that indicates an embarrased look

My file was named with a .jspf extension!

Thanks so much for pointing me in the right direction. You're a genious!
+Pie Number of slices to send: Send
I don't know about that last part, but I'm glad to be helpful.
[ June 06, 2007: Message edited by: Bear Bibeault ]
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 663 times.
Similar Threads
Some way to include() from inside a TagSupport instance?
JSP Tag that contains result of another
Including JSP templates in Taglibs
Confirmation required
How to pass attribute to a custom tag only if it evaluates to a non null value
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:30:11.