Hi! I hade some similar strange problems when I had a very old xml jars. (like xml-api.jar etc)
Check your jars for xml and update them. /Regards Per Jonsson -----Original Message----- From: rotvang [mailto:[EMAIL PROTECTED] Sent: den 12 januari 2007 06:32 To: users@tomcat.apache.org Subject: JSTL c:if statements I have Tomcat version 5.0.28, and I am trying to use the JSTL tags in my webapp. I have placed the 2 required JSTL jar files, "standard.jar" and "jstl.jar" into my WEB-INF/lib directory. The bizarre thing is that some of the JSTL standard tags work, and some don't! Even stranger, it doesn't break down by taglib--in other words, half of the "core" tags work, and half don't. Half of the "fmt" tags work, and half don't. Most importantly, <c:out > works just fine, and with the EL, properly. However, none of the selection or conditional tags work: <c:if , <c:when, and <c:choose tags all throw weird, indecypherable Jasper exceptions at JSP compilation time. Why would only some of the <c: tags throw exceptions, and not all of the <c: tags. Now, to rule out the possibility of syntax errors in my source, I copy/pasted a complete JSP example from Sun's own website, which ostensibly should work. Even with Sun Microsystem's own JSPs, these conditional <c: tags throw the weird Jasper exception. I've pasted an excerpt of the stack trace thrown by any occurrence of <c:if .... in any of my JSPages: Jan 12, 2007 12:30:04 AM org.apache.jasper.compiler.Compiler generateClass SEVERE: Error compiling file: /C:/Documents and Settings/HR Systems/Desktop/jaka rta-tomcat-5.0.28/jakarta-tomcat-5.0.28/work/Catalina/localhost/OVWebApp //org/ap ache/jsp\Example1_jsp.java [javac] Compiling 1 source file C:\Documents and Settings\HR Systems\Desktop\jakarta-tomcat-5.0.28\jakarta-tomca t-5.0.28\work\Catalina\localhost\OVWebApp\org\apache\jsp\Example1_jsp.ja va:152: _jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.Pag eContext ) in org.apache.jsp.Example1_jsp cannot be applied to (org.apache.taglibs.standa rd.tag.el.core.IfTag,javax.servlet.jsp.PageContext) if (_jspx_meth_c_out_1(_jspx_th_c_if_0, _jspx_page_context)) -- View this message in context: http://www.nabble.com/JSTL-c%3Aif--statements-tf2963977.html#a8292740 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ******************************************************************************** This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. ******************************************************************************** --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]