Well, then the problem lies somewhere else. The given code looks fine. I can't spot any faults in the given information as far.
Try c:out instead of c:if and see what it says.
I tested it like this:
While i got "Debug" printed as the output, "Debug1" is not printed.
could you please look if anything is wrong with the web.xml file?
I have this.
That said, I know that you're just learning/playing/testing, but actually this kind of logic belongs in a Servlet. Keep that in mind.
Thanks for the tip.I'll keep that in mind.
Thanks again.
Edit:
I am using servlet-1.2.jar file instead of standard.jar and jstl.jar if that helps.