I feel like this is going to be a question to which the shortest answer will be : "that's why JSF replaced JSP", but I'll just go ahead and ask it.
Question : I am wondering : could I obtain the Response object of a JSF page (if there's any) ?
Why wonder ? : I found myself in a situation where I need to to pass from a JSF page to a JSP one, so I thought why not redirect (with response.sendRedirect
) from a bean that gets invoked from the JSF page and then... you can see where it's heading.
I feel like this can be done in a cleaner way, can't see how though !
EDIT : while on it, I'll also ask about which way would be best for redirecting from to JSF pages.
Thanks in advance for your suggestions.