具有参数的JSF托管bean重定向,无需查看URL [英] JSF managed bean redirect with parameters without viewing URL

查看:72
本文介绍了具有参数的JSF托管bean重定向,无需查看URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过以下方式从托管Bean进行重定向,从而从一种jsf重定向至另一种:

I'm trying to redirect from one jsf to another by redirecting from the managed bean as folows:

return "page2?faces-redirect=true&parameter1=a&parameter2=b";

但是我可以在url中看到参数.是否可以重定向到page2但不查看传递的参数?

but I can see the parameters in the url. Is it possible to redirect to page2 but without viewing the passed parameters?

感谢提前.

推荐答案

将其存储在cookie或会话中.

Store them in a cookie or the session.

这篇关于具有参数的JSF托管bean重定向,无需查看URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆