java - 根据 TLD 或标签文件中的属性指令,属性动词不接受任何表达式

标签 java jstl

我有以下索引页:

<form action ="home.jsp">
  Insert any v1 form : <input type ="text" name="v1"/>
  <input type ="submit" value="click"/>
</form>

还有 home.jsp:

<%@taglib uri="WEB-INF/mytag.tld" prefix="mak"%>
<mak:you verb="${param.v1}"></mak:you>

我收到这个错误

According to TLD or attribute directive in tag file, attribute verb does not accept any expressions

谁能帮忙?

最佳答案

转到 mytag.tld 中的 verb 属性定义并启用表达式支持:

 <attribute>
     <name>verb</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
 </attribute>

关于java - 根据 TLD 或标签文件中的属性指令,属性动词不接受任何表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18677934/

相关文章:

java - 带有 cacerts 的自定义 trustStore 作为不在自定义 trustStore 中的 key 的后备

java - Junit 控制台输出到日志

java - 使 openJPA 仅缓存选定的表

java - jcabi ssh 将输出重定向到 null 或文件

spring - JSTL 中 defaultHtmlEscape web.xml 的用法

jsp - Tomcat 5.5 和 JSTL 1.2 上的 ELException

java - 使用循环从字符串中删除空格

java - 如何保存请求之间的链接名称?

java - 在 JSP 中检查请求属性

java - forEach jSTL 中的内部 forEach 错误