java jsp:forward标签使用,jspforward,jsp的forward标
分享于 点击 23157 次 点评:213
java jsp:forward标签使用,jspforward,jsp的forward标
jsp的forward标签用来做页面的跳转:
<jsp:forward page="otherpage"> <jsp:param name="age" value="37"/> <jsp:param name="weight" value="206"/></jsp:forward>
上面的标签和下面的代码是等价的:
/* clear the buffer before forward. if write into unbuffer out, and then forward, exception occur if write more than the size of buffer, and then forward, exception occur*/out.clear():pageContext.forward("otherpage"+"?age=37&weight=206");
用户点评