【发布时间】:2012-10-30 23:35:51
【问题描述】:
我下面有以下两页。
hello.xhtml,由 .../hello.jsf url 渲染。
<h:form>
<h:commandButton id="submit" value="Submit" action="response"/>
</h:form>
response.xhtml,由 .../response.jsf url 呈现。
<h:form>
<h:commandButton id="back" value="Back" action="hello"/>
</h:form>
当点击提交按钮时,hello页面被重定向到响应页面,但url保持不变,即url仍然是.../hello.jsf。
单击提交按钮后,我希望网址为 .../response.jsf。请帮忙?
非常感谢!
【问题讨论】: