Persons in the ADF cannot receive request parameters

I have an ADF web application with Faces 1.2

In my managed bean, I try to access the parameters of the mail request, but always get null.

This is my email form that I submit to Faces:

<form name="input" action="http://127.0.01:7072/myapplication/faces/login.jspx" method="post">
   <input type="hidden" name="user" id="user" value="myUserName"/>
   <input type="submit" value="Submit"/>
</form>

FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("user");

FacesContext.getCurrentInstance().getExternalContext().getRequest().getParameter("user");

But I always get null and the form method I get: GETis weird!

0
source share
2 answers

when you make a request for a url like:

http: //server/faces/somepage.jspx

The ADF structure debugs you for "HTTP Error 302 Moved temporarily" and redirects you to a URL, for example:

http: //server/faces/somepage.jspx? _adf.ctrl-state = 888888 & _afrLoop = 9999999

POST URL-, ADF , , POST Get , ADF!: (

, - Servlet session, ADF:)

+1

, , .

FacesContext , , , ...

0

All Articles