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!

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
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
604 views