This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hello,i am beginner in JSF. I had this exception " java.lang.IllegalStateException:Cannot call sendRedirect() after the response has been committed" and i could not solve this. Also i searched it in other web pages. But i had not clear solution. Does somebody know the clear solution? Thanks for any help.
You cannot sendRedirect() after ANY data has been written to the HTTP response stream. This is not a JSF limitation - it's a fundamental restriction in HTTP. And by ANY output, I mean things like the content-type header, cookies, or anything else, not just page content.
Customer surveys are for companies who didn't pay proper attention to begin with.
That looks like user-defined login code. I have a standard disclaimer for user-created security systems: the technical term for such things is "hacked". Or "pWned". User-designed security systems are notoriously insecure. I recommend using the J2EE standard security system instead. It has proven security, it's already installed in even the most basic J2EE servers (such as Tomcat), it's well-documented, it's already debugged, and it doesn't require special code to do most of its functions.