tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-charles.jaboui...@bull.net
Subject Réf. : Re: <c:if problem
Date Wed, 08 Sep 2004 08:16:31 GMT

my variable is set in a struts action, not in the jsp...

when i try <c:out value="${done}"/>  it work fine.

your solution doesn't work



                                                                                         
                                             
                      Big Chiz                                                           
                                             
                      <bigchiz@gmail.c         Pour :   Tag Libraries Users List <taglibs-user@jakarta.apache.org>
                    
                      om>                      cc :                                   
                                                
                                               Objet :  Re: <c:if problem             
                                                
                      08/09/2004 09:52                                                   
                                             
                      Veuillez                                                           
                                             
                      répondre à "Tag                                                  
                                               
                      Libraries Users                                                    
                                             
                      List"                                                              
                                             
                                                                                         
                                             
                                                                                         
                                             



if you used something like this
<c:set var="done" value="true" />

you can check for its true/false via
<c:choose>
<c:when test="${!done}" >
   value is false
</c:when>
<c:otherwise>
   value is true
</c:otherwise>
</c:choose>


On Wed, 8 Sep 2004 09:53:34 +0200, jean-charles.jabouille@bull.net
<jean-charles.jabouille@bull.net> wrote:
> Hi,
>
> I have a problem, I try to do an "if" condition.
>
> <c:if test="${done != 'false'}">
>       blablabla
> </c:if>
>
> I'm running it on tomcat 5.
> I think, that the problem is that I compare a string with a variable.
>
> thanks for your answer...
>
> this is the error trace:
>
> javax.servlet.ServletException:
> javax/servlet/jsp/jstl/core/ConditionalTagSupport
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>              sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>              java.lang.reflect.Method.invoke(Method.java:324)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
>              java.security.AccessController.doPrivileged(Native Method)
>              javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

>
>              java.security.AccessController.doPrivileged(Native Method)
>              java.security.AccessController.doPrivileged(Native Method)
>
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)

>
> org.apache.jsp.directLayout_jsp._jspService(directLayout_jsp.java:66)
>
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)

>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>              sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>              java.lang.reflect.Method.invoke(Method.java:324)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
>              java.security.AccessController.doPrivileged(Native Method)
>              javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

>
>              java.security.AccessController.doPrivileged(Native Method)
>              java.security.AccessController.doPrivileged(Native Method)
>
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

>
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

>
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

>
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>              sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>              java.lang.reflect.Method.invoke(Method.java:324)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
>              java.security.AccessController.doPrivileged(Native Method)
>              javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

>
> cause mère
> java.lang.NoClassDefFoundError:
> javax/servlet/jsp/jstl/core/ConditionalTagSupport
>              java.lang.ClassLoader.defineClass0(Native Method)
>              java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>
>
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)

>
>
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)

>
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)

>
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)

>
> org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1316)
>
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
>              org.apache.jasper.compiler.Parser.parse(Parser.java:126)
>
>
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)

>
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)

>
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
>
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
>
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
>
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
>
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)

>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>              sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>              java.lang.reflect.Method.invoke(Method.java:324)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
>              java.security.AccessController.doPrivileged(Native Method)
>              javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

>
>              java.security.AccessController.doPrivileged(Native Method)
>              java.security.AccessController.doPrivileged(Native Method)
>
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)

>
> org.apache.jsp.directLayout_jsp._jspService(directLayout_jsp.java:66)
>
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)

>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>              sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>              java.lang.reflect.Method.invoke(Method.java:324)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
>              java.security.AccessController.doPrivileged(Native Method)
>              javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

>
>              java.security.AccessController.doPrivileged(Native Method)
>              java.security.AccessController.doPrivileged(Native Method)
>
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

>
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

>
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

>
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>              javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>              sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>              java.lang.reflect.Method.invoke(Method.java:324)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
>              java.security.AccessController.doPrivileged(Native Method)
>              javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message