开发者

Why is this redirect not working? JSF

开发者 https://www.devze.com 2022-12-31 05:17 出处:网络
Why is this redirect开发者_如何转开发 not working in my managed bean? HttpServletRequest objHttpServletRequest = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest

Why is this redirect开发者_如何转开发 not working in my managed bean?

HttpServletRequest objHttpServletRequest = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        FacesContext.getCurrentInstance().getExternalContext().redirect(objHttpServletRequest.getRequestURI() + "?abc=" + 1 + "&def=" + 2);

I think the problem is caused because of &. If i send just parameter(removing &), it works fine. Thanks in advance :)


Try replacing & with &.

0

精彩评论

暂无评论...
验证码 换一张
取 消