0
script.tag:JSP的java:我的標記文件不替換參數
<%@ attribute name="file" required="true"%>
<script type="text/javascript" src="/path/to/${file}"></script>
my.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="x"%>
<x:script file="register.js"/>
然而,${file}
PARAM沒有被替換,並保持字面上${file}
幫助!