Set your Action destination for the Form as a variable and only the JAVA
servlet sets the variable as the pay site. Set the default for the variable
as an error or message page or wherever you need it to go if the JAVA
servlet fails, then it has to go through the JAVA servlet to get to the pay
site. The other option is have the Form Submit to a processing page that
does the JAVA servlet that diverts it to the appropriate place from there.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of mtodd@xxxxxxxxxxxx
Sent: Tuesday, November 06, 2012 9:23 AM
To: java400-l@xxxxxxxxxxxx
Subject: JAVA servlet sometimes not being run

When submit button on HTML form is pressed, JavaScript is run to call a

If processing in Servlet is successful I go to an external payment

But have had instances where JavaScript is not run and user goes directly
payment site without Servlet being run.

Application processes about 1000 users in a week, and maybe just 1 or 2 of
those will be as above.

I have never been able to recreate problem in my testing.

I am running app on a Websphere server running on an iSeries.

Please help!



This communication contains information which is confidential and may also
be privileged.
It is for the exclusive use of the recipient(s). If you are not the
recipient(s) please note that any distribution, copying or use of this
communication or the information in it is strictly prohibited.
Any views or opinions presented are solely those of the author and do not
necessarily represent those of Costco Wholesale UK Ltd. If you have
received this communication in error please notify us by e-mailing the
or by telephoning (01923 213113) and then delete the communication and
any copies of it.
This communication is from Costco Wholesale UK Ltd whose registered office
is at UK Home Office, Hartspring Lane, Watford WD25 8JS, England.

This is the Java Programming on and around the IBM i (JAVA400-L) mailing
To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at

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-2021 by 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.