Hi friends, please help me with this, I have been fighting with this problem for some days and now its urgent for me to get this working.

I have a legacy Tomcat app that uses servlets and JSPs. on Each servlet the user access is being checked by reading a variable from the session. That works great but....

I am invoking an xhtml from the servlet or by typing the url in the browser. When the manager gets in the postConstruct mehod, I can read that session variable and its fine, then I go to the page and type anything into a input, when I check the setter method inside the manager the request.getSession () returns null.

In other words, the session variable inside the given request exists only in the postconstruct but after any interaction with the user the request variables is turned into null. The same happends with the request attributes. Only Params remains.

Any Ideas???

Java Code:
    private void init() {
        request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();

        HttpSession sesion = request.getSession();
        Entidad ent = (Entidad) sesion.getAttribute("usuario");