Hey folks,

I have a fairly resource- and time-intensive back-end function that I want 
to kick-start using a JSP page. Basically, it works like this.

        -- user hits a button
        -- an application javabean goes and gets a resultset of email addresses 
from a database
        -- for each row, said bean constructs an email message, connects with a 
SMTP server to send the message, then inserts a row into a database table 
confirming the send (currently being done in a scriptlet, not a bean, but
will be done by a bean in the near future)

Trouble is, that third step can take some time depending on the size of the 
email address resultset and the "health" of the SMTP server and the JSP 
page the initiates the action insists on finishing that step before 
displaying the confirmation page to the user. Or, if the user navigates to 
another page before that step is complete, the JSP stops running the for loop.

Will the for loop keep running after the user changes pages if it is in a 
bean instead of a scriptlet?

Thanks in advance for the help!

-- Marc

Reply via email to