Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

logout in jsf

535042Nov 17 2006 — edited Dec 13 2006
hi

i created a logout with JSF like SRDemoADFBC but when deploy in tomcat, i get the next error

java.lang.IllegalStateException: getAttribute: La Sesion ya ha sido invalidada

this is the code:

ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
HttpSession session = (HttpSession)ectx.getSession(false);
session.invalidate();
response.sendRedirect("Principal.jspx");

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 10 2007
Added on Nov 17 2006
2 comments
550 views