Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从JSTL标记调用自定义JSP标记_Java_Jsp_Jstl_Jsp Tags - Fatal编程技术网

Java 从JSTL标记调用自定义JSP标记

Java 从JSTL标记调用自定义JSP标记,java,jsp,jstl,jsp-tags,Java,Jsp,Jstl,Jsp Tags,我试图从JSTL标记调用我的自定义标记。 由于使用引号,自定义标记显示为字符串而不是标记。 我可以在这里使用转义字符吗 <img align="left" src="<c:url value='/getFile/getfile?<myTag:getValue type="web" name="person" />'/>" alt="person" title="person" width="55" height="70"/> '/>“alt=“person

我试图从JSTL标记调用我的自定义标记
。 由于使用引号,自定义标记显示为字符串而不是标记。 我可以在这里使用转义字符吗

<img align="left" src="<c:url value='/getFile/getfile?<myTag:getValue type="web"  name="person" />'/>" alt="person" title="person" width="55" height="70"/>
'/>“alt=“person”title=“person”width=“55”height=“70”/

您必须首先将自定义标记的输出分配给一个临时变量,然后再使用它

<c:set var="urlquerystring"><myTag:getValue type="web" name="person" /></c:set>

<img align="left" src="<c:url value='/getFile/getfile?${urlquerystring}'/>" alt="person" title="person" width="55" height="70"/>

“alt=“person”title=“person”width=“55”height=“70”/