【发布时间】:2015-09-19 17:18:08
【问题描述】:
有没有办法在jsp中引用java代码中html标签的id,例如:
...
<body>
<h1>Order state</h1>
<p id="name">Customer name: ${p.customerName}</p><br />
...
<%
request.setAttribute("customerName", <object>);
%>
...
所以在这个例子中,我想在 java 代码中引用段落的值 ${p.customerName} 来代替
【问题讨论】: