Calling a custom JSP tag from JSTL tag

前端 未结 1 1131
孤独总比滥情好
孤独总比滥情好 2021-01-03 13:17

I\'m trying to call my custom tag from the JSTL tag . Because of the quotes, the custom tag is shown as a string instead of a tag. Can I use an esc

相关标签:
1条回答
  • 2021-01-03 13:21

    You'll have to assign the output of your custom tag to a temp variable first and then use it

    <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"/>
    
    0 讨论(0)
提交回复
热议问题