HttpServletRequest « Servlet « JSF Q&A

1. Get the Raw Request String from HttpServletRequest

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?

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


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

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:

public class ...