简体   繁体   English

JSF:如何将参数传播到web.xml中的登录页面

[英]JSF: How to propagate params to login page in web.xml

I've a page like: 我有一个类似的页面:

/myApp/internalPage.xhtml?orderId=1234

When user is not logged, my web.xml configuration redirect to 当用户未登录时,我的web.xml配置重定向到

/myApp/login.xhtml

In this step, I loose my params information (orderId=1234). 在此步骤中,我释放了参数信息(orderId = 1234)。

How can I configure web.xml to propagate all params to login page? 如何配置web.xml以将所有参数传播到登录页面?

I want to be redirected to: 我想重定向到:

/myApp/login.xhtml?orderId=1234

Tks ks

If I don't get you wrong, the redirection is triggered by your security constraint. 如果我没弄错,重定向是由您的安全约束触发的。 In that case, after the user has logged in, he/she will be redirected to the original url, ie /myApp/internalPage.xhtml?orderId=1234 (with the param) 在这种情况下,用户登录后,他/她将被重定向到原始URL,即/myApp/internalPage.xhtml?orderId=1234(带有参数)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM