I have the following JSP with two custom tags, one of which is being recognized, the other of which is not. Here is the JSP, followed by the TLD. In the JSP, the tag in line 21 is the one that's working, and the tag in line 24 is the one with the problem. Any ideas?
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: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?