0

I have the following code to submit a form with a get mechanism :

ExternalContext extCtx = FacesContext.getCurrentInstance().getExternalContext();
HttpSession session = (HttpSession) extCtx.getSession(false);

String formAction = obj.getRedirectURL();
session.setAttribute("formAction", formAction);
session.setAttribute("param1", param1);
session.setAttribute("param2", param2);
extCtx.redirect(formAction);

How can i submit the same request with POST mechanism.

User
  • 573
  • 3
  • 15
  • 28

0 Answers0