Following on from this, I have always used a Bean in the context of HttpSession Bean 9quick lighweight alternative to
EJB Session bean).
But for this system i am using it [Bean] merely as a temporary storage for a user's details on registration.
All the details (name, address, email, user etc etc etc) are set in a Bean by the Servlet then passed to another class which will take those details and run some SQL stuffy to create the account in my DB.
thing is, once this is done, how do i 'destroy' the UserBean? it's not stored in the session just passed from CreateAccountServlet.class to CreateAccountSQL.class.
Or
Is there a better method, recommended of doing this e.g. passing eveything over to the method
CreateAccountServlet.createAccount(
String fname, String sname... String password...) etc etc etc. Or in a vector or something?
What would be the recommened method of doing this?