A coworker has a Struts app that gathers info and runs a report.  The report
could take a long time to complete, so right now the user just sits at the
page that was "submitted" and it looks like nothing's happening.  He wants
to get something to the user immediately, and we're thinking of a page that
reloads itself (w/ JavaScript) until the report finishes.

This seems to indicate that we need to kick the report off in a separate
Thread so that it can go do its thing while we continue on in the Struts
Action and forward to the JSP that will tell the user to be patient.

Before we start down this road, is there any problem with creating a Thread
within a Servlet (Struts Action, actually)?  I haven't done much concurrent
Java programming, so I may be way off base and would appreciate being told
that sooner rather than later!

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to