
[英]How to redirect to another page when already authenticated user accesses login page
[英]How pass hidden params when redirect to another page [duplicate]
我重定向到详细信息页面:
FacesContext.getCurrentInstance().getExternalContext().redirect("detailsTask?id=" + process.getId());
而bean配置是:
<managed-bean>
<managed-bean-name>detailsTaskBacking</managed-bean-name>
<managed-bean-class>pt.ano.gspgsemdd.webapp.tasks.DetailsTaskBacking</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>id</property-name>
<value>#{param.id}</value>
</managed-property>
</managed-bean>
这样,链接和 ID 也是可见的。 我需要隐藏这个ID。 任何的想法?
使用 flash 范围: stackoverflow.com/questions/11194112/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.