Bear Bibeault wrote:Any errors in the logs?
No errors in the logs, but Eclipse is highlighting it and saying, "Unknown tag(mytag: myPollResults)".
Bear Bibeault wrote:What's being rendered into the HTML being sent to the browser?
The HTML being rendered for that line is simply this:
For what it's worth, here is the code for my tag. It is supposed to print out some HTML.
Frank Serkland wrote:Well, there's no HTML statements being output, but I'm no longer sure if the other tag is working.
I have now verified using different browsers that the first tag is not being called when a cookie is present, but it is called when there is no cookie. I put a System.out.println() statement in it, and when I ran the JSP, that statement did not print out. The tag is in a place where it is supposed to be called regardless of whether the cookie it's supposed to find is present or not. This is all in spite of the fact that I wrote this tag to detect the presence of the cookies. Any ideas out there about why the tag isn't working?
Frank Serkland wrote:
Vijitha Kumara wrote:
Frank Serkland wrote:I put a System.out.println() statement in it, and when I ran the JSP, that statement did not print out...
Is it not printed in your server logs or the page being rendered?
It's not printed in the server logs.
Okay, the System.out.println() statement is always being printed now, for whatever reason. I didn't do anything to the code, but I won't complain.
Back to the original question. I will re-paste the code here for everyone's convenience. Below is my JSP. When the cookie is not present, I get the poll question, which is correct. When the cookie is present, the JSP is not calling the tag in line 24 because it doesn't recognize it, and that's not correct. Instead, nothing is rendered in the browser. The HTML code for what's rendered in the browser is exactly what appears below in line 24. Any ideas?
This is my TLD.