This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
G'Day from Brisbane,
although not a newbie as such, I have been out of the Java world for eight years or so. Given a new year I thought I'd get back in touch with a few new environments. So NetBeans 6.5, GlassFish V2 and Java SDK of course. And I picked out some beginners tutorials. Got through the first one. It had errors, but they were easy to pick and correct. I am stumped on this error on the second tutorial, as I AM a newbie at this technology!
I foolowed the tutorial step by step and got errors. Figuring I had a case of dyslexic fingers, I did the toot again using cut-n-paste from the example code.
Same errors. Now, I googled the error. 10 items found. No answers. Bugger....
Unable to load tag handler class "com.midnightcookies.taghandlers.LinksHandler" for tag "midnight:links"
This is the offending block in main.jsp
This stuff is at the top of main.jsp, added automagically by NetBeans IDE (I am missing vi() already! ;-)
<%-- The <midnight:content/> tag which handles the contents section
is simplistically implemented to use an include. Hence this page
cannot be buffered --%>
Do you have the source code for the tutorial? It should come with some library JAR files, one of which defines the midnightcookies tag library. Including that JAR in your project should work.
If you are working purely from text, then you are out of luck unless you can fine someone who has that JAR file. Even having the web site working would not help because you would stilkl be missing the classes that implement the class library (thet would be the next error you would run into).
I found and downloaded the source for the tutorial. There is a midnight.tld file, you need to include that somewhere (in WEB-INF/classes???) Or perhaps as udaykumar suggested, it needs to be mentioned in web.xml. Sorry for the vague answer, it's been a while since I dealt with custom tag libraries...
Joined: Feb 11, 2009
Peter Johnson wrote:I found and downloaded the source for the tutorial. There is a midnight.tld file, you need to include that somewhere (in WEB-INF/classes???) Or perhaps as udaykumar suggested, it needs to be mentioned in web.xml. Sorry for the vague answer, it's been a while since I dealt with custom tag libraries...
No worries. Thanks. I'll keep mucking around with it.