ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Creating Richer Hyperlinks with JSP Custom Tags
Subject:   Fix for Tomcat 4.x
Date:   2003-05-14 11:45:16
From:   amitgoel

If you're using Tomcat4.x, you will need to make the following two changes to get the multilink functionality working.

1. Modify your <taglib> element to include a <shortname> tag. The text of this tag can be arbitrary. So your taglib element will look like the following:


2. In MultiLinkTag.java, you will need to change EVAL_BODY_TAG to EVAL_BODY_BUFFERED. If the java file doesn't compile for you, place tomcat4.x\common\lib\servlet.jar first in your classpath.

That's it.