-
1. Re: IllegalStateException
genman Aug 6, 2004 2:39 AM (in response to jactor)
This is a servlet issue. Probably the example is wrong. The first thing you should do, if you want to create a session is to create it before you output anything in the response... Not a JBoss issue, AFAIK. -
2. Re: IllegalStateException
jactor Aug 6, 2004 3:49 AM (in response to jactor)Well thanks, but this does not help me.
I am new to JBoss (and also Servlets) so I will use JBoss to teach me how to make my own portal and I was also planning to release my new portal on JBoss, but this stop me in my path. I need a solution so I could continue... -
3. Re: IllegalStateException
starksm64 Aug 6, 2004 4:00 AM (in response to jactor)Edit the bank/web/logoff.jsp page and remove the call to request.getSession(true) after the invalidate call:
<%@ page import="java.util.*" %> <% ResourceBundle messages = (ResourceBundle)session.getAttribute("messages"); request.getSession().invalidate(); // Remove the following statement HttpSession newSession = request.getSession(true); %> <center> <h3><%=messages.getString("Farewell")%></h3> <h3><a href="<%=request.getContextPath()%>/main"><%=messages.getString("LogonAga in")%></a> </center>
-
4. Re: IllegalStateException
jactor Aug 9, 2004 9:52 AM (in response to jactor)Thanx...
My email has been seen as fake wich I can't understand... I was monitoring this thread by mail, that is why I am so late with answering as I didn't get any more messages...
I took a brief look at at the jsp, and now I don't get any error, but I still can't log on. I just get forwared to the logoff page. I think I need to study the tutorial in detail to find out what is wrong... In the jsp there is stated a post-action to J_security_chech and I can't find this word in other files than in my jsp's. I don't know which component is invoked when pressing the submit-bgutton...