We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
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:
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>something</shortname>
...
</taglib>
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.
|