JSF: Redirect to url as POST not as GET

前端 未结 2 457
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 20:13

I have an JSF page that redirects via context.getExternalContext().redirect(url); where the url is sth. like login.jsf?token=foobar

What I want

2条回答
  •  心在旅途
    2020-12-09 20:53

    Yes you can do this by redirecting your backing bean to some temporary page which contain all hidden values and use form.submit(); Example:

    Backing Bean:

    public String submitValue() {
            return "temp";
    }
    

    temporary.jsf

    
      
      
    
    
    
    
    

提交回复
热议问题