Hi.. tried writing the app but came up with errors. Here is what i did. My tomcat web apps directory contains a folder TagsTest. This parent folder contains 2 files. 1)index.jsp and WEB-INF. WEB-INF contains the following files.
========================================================================= temperature.tld has the following entries [code] <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
Can you please try extending the TagSupport class instead of the BodyTagSupport. You will also have to change the method name to doStartTag() I am taking a wild guess that this could be an issue since your tag does not actually have a body. Or another alternative would be to try using your tag like
This would just fool the body tag support class into thinking that your tag has a body. Or another option may be to change the return to SKIP_BODY instead of EVAL_PAGE.
Try to go through the example again and look at creating a simple tag with attribute since your tag does not really have a body.
He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever - Chinese proverb