HttpServletRequest « Servlet « JSF Q&A





1. Get the Raw Request String from HttpServletRequest    stackoverflow.com

Is it possible to get the raw HTTP Request from the HttpServletRequest object? I want to see the raw request as a String if at all possible. I need to get the ...

2. Redirect to protected resource or original/saved request after Servlet 3.0 HttpServletRequest#login() authentication?    stackoverflow.com

As expected, the login page loads when a protected/secure resource is requested:

<login-config>
    <auth-method>FORM</auth-method>
    <realm-name>jdbc</realm-name>
    <form-login-config>
        ...

3. Problem using HttpServletRequest authenticate() within JSF 2.0 preRenderView listener    stackoverflow.com

I'm trying to use the authenticate() in a preRenderView listener method, in order to trigger authentication conditionally, depending on view parameters in the page. I tried adding a simple method:

@Named
@RequestScoped
public class ...