hi,
fetched parameters from a non faces request to seam using
@RequestParameter("MYPARAM") private String myParameter;
in stateless EJB. Works fine.
My next step is to get the User-Agent
from the http header. Unfortunately there is no
@RequestHeader("User-Agent") private String userAgent;
;-(
So my questions.
Could you give me a hint to get header information?
What do you think about adding a annotion to get header the same way as parameters?
Thanks
Olaf
Try with:
Map<String, String> headers = FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap();
HTH