`

EL char

    博客分类:
  • EL
 
阅读更多

描述:在jsp里用 ${order.isNeedInvoice=='N'? 'checked':''}  ,isNeedInvoice 在后台是character类型的。

问题:报错,javax.el.ELException: Cannot convert N of type class java.lang.String to class java.lang.Long

 

 

查了资料,发现说EL表达式没有CHAR类型,他会把CHAR转成LONG,

参考:https://bz.apache.org/bugzilla/show_bug.cgi?id=52666,tomcat BUG?

EL官方文档:

A {<,>,<=,>=,lt,gt,le,ge} B 

■ If A==B, if operator is <=, le, >=, or ge return true. 
■ If A is null or B is null, return false 
■ If A or B is BigDecimal, coerce both A and B to BigDecimal and use the return 
value of A.compareTo(B). 
■ If A or B is Float or Double coerce both A and B to Double apply operator 
■ If A or B is BigInteger, coerce both A and B to BigInteger and use the return 
value of A.compareTo(B). 
Chapter 1 Language Syntax and Semantics 13 
■ If A or B is Byte, Short, Character, Integer, or Long coerce both A and B to 
Long and apply operator
 
■ If A or B is String coerce both A and B to String, compare lexically 
■ If A is Comparable, then: 
■ If A.compareTo(B) throws exception, error. 
■ Otherwise use result of A.compareTo(B) 
■ If B is Comparable, then: 
■ If B.compareTo(A) throws exception, error. 
■ Otherwise use result of B.compareTo(A) 
■ Otherwise, error

 

CHAR类型,还是别出现的好,在后台转成String 吧

 

分享到:
评论

相关推荐

    论文研究 - 使用DRASTIC漏洞地图和ArcFem工具进行周边保护的地下水保护:以Charf El Akab蓄水层(摩洛哥北部)为例

    Charf El Akab含水层的表面积为17 km2,位于丹吉尔市西南约20 km,在同名的中新世沙质盆地中流通,由两层组成,一层高,另一层低,这两个是在某些地方被不可渗透的沙质地层隔开。 丹吉尔-艾西拉地区对饮用水或工业...

    bundle-el:一个 el-get 包装器

    bundle.el --- 包装器 用简单的语法包装 。 避免长长的 El-Get 食谱。 包需求及其初始化代码放在 Emacs init 文件中的同一位置。 初始化代码在第一次被评估时会自动进行字节编译。... (goto-char (point-max))

    DFT的matlab源代码-evil-find-char-pinyin:带有拼音支持的Evil的f/F/t/T/evil-snipe命令

    "/path/to/evil-find-char-pinyin.el") (require 'evil-find-char-pinyin) Usage To enable the mode: (evil-find-char-pinyin-mode +1) After you enable the mode, evil’s f/F/t/T commands are able to jump to ...

    基于word2vec预训练词向量,textCNN,charCNN,Bi-LSTM, Attention预训练模型的文本分类项目

    一、大纲概述 文本分类这个系列将会有8篇左右文章,从github直接下载代码,从百度云下载训练数据,在pycharm上导入即可使用,包括基于word2vec预训练的文本分类,与及基于近几年的预训练模型(EL - 不懂运行,下载完...

    职工管理系统c 语言版

    char name[8];//姓名 char sex[2];//性别f为女m为男 int age;//年龄 int cult;//文化程度1为专家2为博士3为硕士4为学士5为其他 int salary;//工资 int state;//健康情况分为good,general,bad char day[10];//...

    排序二叉树

    主要测试排序二叉树的建立和查找功能. 这是排序二叉树类: template &lt;class T&gt; class BTree; template class BSTree:public BTree ... BTreeNode* deleteNode(BTreeNode&lt;T&gt; *&p, char num[]); //删除的递归函数 };

    .emacs.d:我的 emacs 设置

    emacs 并将其粘贴到 *scatch* ( Cx b RET *scatch* 调用它) (url-retrieve " https://raw.github.com/dimitri/el-get/master/el-get-install.el " ( lambda (s) ( let (el-get-master-branch) (goto-char (point-...

    递归下降子程序的编写

    char EL[20]; int word=0; void E1(); void T(); void T1(); void F(); // 编写 E 函数 // E-&gt;TE void E(){ printf("E-&gt;TE'\n"); T(); E1(); } // 就是那个 E' 函数 // E'-&gt;+TE'|ε void E1(){ if(EL[word]==...

    openssl evp aes 加解密算法调试例程

    int encode_str_size = EVP_EncodeBlock(base64, en, el); int length = EVP_DecodeBlock(base64_out, base64, encode_str_size ); //EVP_DecodeBlock内部同样调用EVP_DecodeInit + EVP_DecodeUpdate + Evp_...

    Vue解决echart在element的tab切换时显示不正确问题

    最近在项目中遇到了这种情况,需要在tab控件上渲染多个echart图标,然后切换查看时,发现图表的宽度不正确 原因:在页面进行加载时,隐藏的图表找不到对应的div大小,所以默认给了一个大小。...el-tab-pane na

    Vue-Element UI集成ECharts实现数据统计分析页代码部分(如果帮助到你,感谢关注点赞)

    关于《Vue-Element UI集成ECharts实现数据统计分析页》文章的具体代码实现。(如果帮助到你,感谢关注点赞)

    VUE+elementui组件在table-cell单元格中绘制微型echarts图

    需求效果图示例 实际完成效果图 ** 代码实现 注:table表格为二次封装的子组件 -在table表格中 根据 scope.$index动态设置元素的id ,便于指定单元格的echarts初始化;... &lt;el align=center&gt; &lt;div v

    CentOS 5.4安装手册

    d) 修改/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/drivers/char/mem.c中的range_is_allowed函数,只要return 1;这句。 e) 执行以下命令 i. cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386...

    matlab做软件界面

    (ischar(varargin(1) fmt vararginil y I imread(filename, frt)i time=4003; Seif (nargin --2)&amp;(isnumeric(vararginf1) I imread(filename time varargin(l: elseif nargin ==3 fmt rangin[1) I imread...

    TAREA_3:PABLONUÑEZ

    TAREA 3 las listas y el。 Las listas儿子变量列表,manera ordenada变量列表,esto lo podemos asemejar a un tren,donde estos tienen vagones,dentro de cadavagónhay elementos,que pueden ser enteros...

    SO实验室1

    ``char buf[MAX_LEN];`}; 不提供任何补偿。 Usamos la funcion shm_open()不能在servira para crear y abrir un objeto de 备受赞誉的备受赞誉的西班牙和阿德玛斯备忘录。 Y funcion ftruncate sera para ...

    disasm-filter

    最初的动机来自使用JIT编译器的环境,在该环境中,操作码出现在代码( char字节的静态数组)中。 输入流应与模式^(0x[0-9a-f]{2})(, 0x[0-9]{2})*$匹配。 $ dis &lt;&lt;EOF \ 0x48, 0x01, 0xf8 \ EOF 40 01 f8 ...

    ibuffer-rcirc:rcirc 的 Ibuffer 集成

    这个包包含 ibuffer-rcirc.el 信息 作者:法比安·埃兹奎尔·加利纳 联系人: gnu dot org 的 fgallina 项目主页: : 介绍 为 ibuffer 提供 rcirc 活动跟踪和服务器过滤。 用法 要按 IRC 服务器对缓冲区进行分组:...

    if语句 、switch语句 、for循环、break、continue、while、do-while

    而switch语句作用的类型:byte,short,int,char,String。 2、编码习惯:if适合分支较少的情况,switch适合分支较多的情况。 //1.if语句 if(条件表达式){ } //2.if...else语句:二选一 if(条件表达式){ 语句块1;...

    新手学习C++入门资料

    许多外文字符集所含的数目超过256个,char字符类型无法完全囊括。wchar_t数据类型一般为16位。 标准C++的iostream类库中包括了可以支持宽字符的类和对象。用wout替代cout即可。 #include iostream.h int main() ...

Global site tag (gtag.js) - Google Analytics