× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I learned about Internet user interface design by using the Internet.  And
my observation is that people don't do that.  Usually, nothing happens at
the user end until the results come back.  And all the browsers that people
are using nowadays have rotating icons or something that already tell the
user that processing is probably taking place.  So my response to this would
be, don't bother.

However, if you really must do this, then you need to do something like
this:

1. Start your calculation in a separate thread.
2. Send back an ordinary response (not a redirect) that includes a Refresh
header, which tells the page to automatically refresh itself after N
seconds.  (response.setHeader("Refresh", N);)
3. This page should request a servlet that just checks if the calculation is
complete; if it isn't, send the Refresh page and if it is, send the results
page.

PC2

-----Original Message-----
From: Mike Silvers [mailto:msilvers@HBS-INC.COM]
Sent: July 17, 2002 08:30
To: java400-l@midrange.com
Subject: Displaying a "Processing your request" page


I am using jsp's and servlets along with interaction with a COBOL program
for a web page.  The page is displayed with search parameter fields using a
jsp.  The controlling servlet then receives the request and calls the COBOL
program to process the request.  The servlet then redirects the response to
the jsp to display the results.

What I am trying to accomplish is to have the search request sent, another
page displayed stating "Processing the request", and, when the results are
found, displaying the results.  I tried to do a redirect in the beginning of
the servlet with a Boolean flag assed to the sessions object with coding in
the jsp to display the "Processing" page, then do the processing and do
another redirect with the data.  This is not working.  The first redirect is
not displayed.

Does anyone have any ideas or recommendations on how to complete this task?

Thanks

Mike

================================
Mike Silvers
AS/400 Senior Programmer/Analyst
AS/400 IBM Certified RPG IV Developer
AS/400 IBM Certified Solutions Expert
Hainey Business Systems
8 E. Canal St
Dover, PA 17315
Branch Office:  (410) 397-8739
Phone:  (800) 932-3380 ext. 237
Fax:  (717) 292-9474
Web: http://www.hbs-inc.com
________________________________
Providing E-Commerce, EDI, AS/400
Development, Java Development,
and related services nationwide.
================================


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.