`

Illegal use of <when>-style tag without <choose> as its direct paren

阅读更多

在jsp页面使用c:when标签时,报错
Illegal use of <when>-style tag without <choose> as its direct parent
原因是:必须在c:when标签必须在c:choose里面使用。
具体用法如下:

<c:choose>
    <c:when test="${book.compareToday=='0'}">
        <div id="test">通过</div>
    </c:when>  
    <c:otherwise>
不通过
</c:otherwise>
</c:choose>
分享到:
评论

相关推荐

    c语言链表示例

    #include&lt;stdio h&gt; #include&lt;stdlib h&gt; #include&lt;malloc h&gt; #include&lt;string h&gt; struct Node { char name[20]; int score; struct Node next; }; 定义一个结构体 此结构体存储学生姓名 ...

    C++出错提示英汉对照表

    Illegal use of floating point -----------------非法的浮点运算 Illegal use of pointer --------------------指针使用非法 Improper use of a typedefsymbol ----------------类型定义符号使用不恰当 In-line ...

    Python学习笔记——变量、print、转义字符

    对应Python学习笔记——变量、print、转义字符。变量的类型、命名规则、print的用法、字符串的表示以及转义字符

    vue-emoji-mart:已弃用。 尝试emoji-mart-vue:https:github.comjm-davidemoji-mart-vue代替

    此项目已弃用。 请改用 。 Vue Emoji Mart是可定制的Slack Vue的表情符号选择器组件,... &lt; Picker :emoji-size =" emojiSize " :per-line =" perLine " :skins =" skin " :native =" native " :set =" set

    Bochs - The cross platform IA-32 (x86) emulator

    [3043174] Docbook use of '_' build failure [3085140] Ia_arpl_Ew_Rw definition of error [3078995] ROL/ROR/SHL/SHR modeling wrong when dest reg is 32 bit [2864794] BX_INSTR_OPCODE in "cpu_loop" ...

    2009 达内Unix学习笔记

    ls -lt 是“-l”和“-t”的组合,按时间顺序显示列表。 ls -F 显示文件类型,目录“/ ”结尾;可执行文件“*”结尾;文本文件(none),没有结尾。 ls -R 递归显示目录结构。即该目录下的文件和各个副目录下的文件...

    三大技术javaBean+servlet+jsp常见问题和解决方案

    在 JSP 页面中使用 `&lt;c:when&gt;` 标签时,如果没有将其放在 `&lt;c:choose&gt;` 标签的直接子元素中,则会抛出 `javax.servlet.ServletException: Illegal use of &lt;when&gt;-style tag without &lt;choose&gt; as its direct parent` ...

    This project will protect your software from illegal use aft

    This project will protect your software from illegal use after the evaluation period is over.

    借助Ehcache缓存框架实现对页面的缓存Demo

    The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. ...

    Ice License v1.15

    Password: c8bk9-ua2-IceLicense-WSWhat is IceLicense for Delphi : IceLicense is a new software copy protection solution designed to provide a high level of security. With IceLicense it‘s easy to turn ...

    polycom宝利通视频会议软件3.9 2018

    Full use of the SOFTWARE PRODUCT may be provided when a Standard Use or Subscription license key is purchased. If you have entered data into the SOFTWARE PRODUCT during the DEMONSTRATION PERIOD and ...

    BlueToolInstall

    Licensee warrants that it will not use, or knowingly permit any of its direct or indirect customers, to use any Authorized Licensee Product, in any medical, nuclear, aviation, navigation, military, ...

    Undocumented_Secrets_of_MATLAB_Java_Programming.part2

    hundreds of screenshots and ~1500 online references are provided to enable the utilization of this book as both a sequential tutorial and as a random-access reference suited for immediate use. ...

    Undocumented_Secrets_of_MATLAB_Java_Programming.part3

    hundreds of screenshots and ~1500 online references are provided to enable the utilization of this book as both a sequential tutorial and as a random-access reference suited for immediate use. ...

    Mysql彻底解决中文乱码问题的方案(Illegal mix of collations for operation)

    MySQL中的中文乱码问题往往源于字符集设置不一致或不恰当,这会导致"Illegal mix of collations for operation"的错误。为了解决这个问题,我们需要理解MySQL中的几个关键字符集概念,并采取相应的配置措施。 1. **...

    java微信公众号MVC开发框架

    -- 设置微信方法调用超时阀值,单位毫秒 --&gt; 四、使用参考 本部分会全面讲解jwx的概念及使用方法。 1、主要概念 微信上下文:微信上下文(WexinContext)是jwx最重要的部分,jwx可以同时处理多个微信公众号...

    JSP Simple Examples

    ArrayIndexOutOfBoundException is thrown when we have to indicate that an array has been accessed with an illegal index. printStackTrace in jsp printStackTrace is a method of the Throwable class. By ...

    ms05039.rar

    Limitation of Liability &lt;br&gt;4.1. YOU AGREE THAT FOUNDSTONE WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL OR PUNITIVE DAMAGES ARISING OUT OF YOUR USE OF, OR ...

    华为交换机路由器配置命令

    华为交换机路由器配置命令是网络工程师在日常维护与配置网络设备时不可或缺的知识点。以下将对给定的文件中的华为交换机路由器配置命令进行详细解析,帮助读者更好地理解和掌握这些命令。 ### 一、基本配置命令 ...

    The Art of Assembly Language Programming

    You are visitor as of October 17, 1996. The Art of Assembly Language Programming &lt;br&gt;Forward Why Would Anyone Learn This Stuff? 1 What's Wrong With Assembly Language 2 What's Right With ...

Global site tag (gtag.js) - Google Analytics