Re: Destoy a session??

From: Heiner Kücker (Mail_at_Heiner-Kuecker.de)
Date: 02/22/05


Date: Tue, 22 Feb 2005 01:09:52 +0100

Amy
> I have a webapp that is one JSP page and one bean.
>
> The bean connects to a database and does some tracking.
>
> The url looks like this...
> http://www.mydomain.com/folder/index.jsp?lcq=1/2/1
>
> This sets a level, course and quiz number in the bean which
> is then used for the rest of the users session.
>
> When the user has finished, they are expected to go on
> to the next quiz...
> http://www.mydomain.com/folder/index.jsp?lcq=1/2/2
>
> q is now 2. My question is, how do I destroy the session bean
> so that all data is reloaded?

session.removeAttribute(String);

session.invalidate();

-- 
Heiner Kuecker
Internet: http://www.heinerkuecker.de  http://www.heiner-kuecker.de
JSP WorkFlow PageFlow Page Flow FlowControl Navigation: http://www.control-and-command.de
Java Expression Formula Parser: http://www.heinerkuecker.de/Expression.html
Domain Specific Languages http://www.heinerkuecker.de/DomainParser.html


Relevant Pages

  • Re: put application on server ??!!!!
    ... > I am new to web service programming and I just start to learn jsp. ... > make my application into a bean? ... separate those two pieces into separate code bases with published APIs ... Have forms submit to servlets. ...
    (comp.lang.java.programmer)
  • Show a bean property in jsf....its so difficult?????
    ... I have a jsf application and i have to show a bean value into a jsp ... public String[] getarraylinee{ ... catch (NullPointerException exc) { ...
    (comp.lang.java.programmer)
  • Re: How to handle data validation in a JSP page.
    ... >I have a bean managed entity bean and I was wondering how people ... >implemented in the .jsp page and should be checked in a session/entity bean? ... .jsp already. ... >handle communications with the jsp pages? ...
    (comp.lang.java.programmer)
  • Re: EJB 3.0, JSF, JBoss....
    ... die dann in der JSP als Bean angesprochen wird. ... dependency injection allerdings habe ich das nicht hinbekommen. ... weis einer weiter? ...
    (de.comp.lang.java)
  • JSP to Servlet: Dynamically Binding Form Data to a Bean??
    ... form data to a bean, then pass this bean to a servlet. ... then the JSP forwards to the desired servlet. ... I have to post to this JSP in order for my jsp:setProperty to do the ... work of binding all the input fields to the IdentityBean. ...
    (comp.lang.java.programmer)