Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
JSTL c:if statements

JSTL c:if statements

2007-01-12       - By David Smith

 Back
Reply:     1     2     3  

Could you post your page source?  Also post the web-app dtd declaration
in your web.xml file.  I suspect either servlet spec version or tag
usage is causing your issue.

--David

rotvang 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 Source code of org.apache.jasper.compiler.Compiler generateClass
> SEVERE: Error compiling file: /C:/Documents and Settings/HR
> Systems/Desktop/jaka
> rta-tomcat-5 (See http://cat-5.ora-code.com).0.28/jakarta-tomcat-5 (See http://cat-5.ora-code.com).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 (See http://cat-5.ora-code.com).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 Source code of 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 Source code of javax.servlet.jsp.PageContext)
>         if (_jspx_meth_c_out_1(_jspx_th_c_if_0, _jspx_page_context))
>
>  


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.