In my action class I want to prepare some things and then forward to a JSP
to display those things. However, I also want to do some cleanup after the
JSP has finished.
Want I want is conceptually the same as
public final class myAction report extends Action
{
public ActionForward perform(...)
{
dbh = get_database_connection()
initialize_some_beans( dbh , other , stuff );
try
{
return (mapping.findForward("success"));
}
finally
{
close_connection_no_matter_what();
}
}
}
Obviously the above does not work.
Is there a way for the myAction class to ensure that the database
connection is closed after the JSP is done, or must the JSP do this?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>