Look like you have got duplicate classes in your classpath ,one from *
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext* pakage and
other from *org.apache.taglibs.standard.tag.el.core.IfTag,
javax.servlet.jsp.PageContext *pakage.



On 1/12/07, rotvang <[EMAIL PROTECTED]> wrote:


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.java:152:
_jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,
javax.servlet.jsp.PageContext
) 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]


Reply via email to