Hi all

I use the following
  <%@ page session="true" %>
  <jsp:useBean id="person" scope="session" class="ltr.PersonData" />
on my page

It's so a form can be filled in and validated before submitted to a
database...
After it is submitted I don't want it to take up memory on the server, how
do I remove it?

My page workflow is like this...

1. Page1 : Form
2. Submit to page1 again (with submit flag)
3. if bean person have all data, store it, forward to the same page with a
special flag. else, forward to the same page with a error flag
4. If Error flag, show error message, if Done flag, show thank you...

Should I split it to two pages and use a page-forward if an error?
The flags is so the "reload" button does not add an extra person in the db

// Jan Aren�

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to