【问题标题】:Can i use include directive in anchor tag?我可以在锚标签中使用包含指令吗?
【发布时间】:2016-07-26 20:13:08
【问题描述】:

我想将另一个 jsp 的内容包含到我当前的 jsp 中

 <a href="<jsp:include page="ans1.jsp">
            <jsp:param name="q" value="<%=i+1%>"/>
                  <jsp:param name="n<%=i%>" value="<%=rs2.getInt(1)%>"/>
        </jsp:include>">50-50</a>

方法对吗

【问题讨论】:

标签: java html mysql ajax jsp


【解决方案1】:

你可以用这个。

 <%@include file="filename.jsp" %>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-26
    • 1970-01-01
    • 2011-08-31
    • 1970-01-01
    相关资源
    最近更新 更多