开发者

Why is this redirect not working? JSF

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜