Don't be sorry! thanks for help.

App developed using Rational Application Developer running WAS(Websphere
Application Server) on our iSeries.
(If its OK I can send more info, but don't want to be to presumptious as
you do have your day jobs!)

I have not explictly used AJAX-style XMLHttpRequest calls but I think
WebSphere implements it.

Its not clear in Websphere how you explictly define the HTTP headers ? but
I am looking into it.

I can get the payment company to only allow the check out page URL into
their system, but given what you have said they maybe valid requests.

As I was thinking the other URL pages are invalid.

Thanks again.






RE: JAVA servlet sometimes not being run


Dan Kimmel
to:
Java Programming on and around the IBM i
20/11/2012
15:41




Sent by:
java400-l-bounces@xxxxxxxxxxxx
Please respond to Java Programming on and around the IBM i








Sorry. Not nearly enough information about your app to begin to make
suggestions. Are you using AJAX-style XMLHttpRequest calls to their site?
If so, you may need to be more explicit about what goes in the http headers
as you're at the mercy of the browser as to the default values it'll put in
there.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of mtodd@xxxxxxxxxxxx
Sent: Tuesday, November 20, 2012 6:13 AM
To: Java Programming on and around the IBM i
Subject: RE: JAVA servlet sometimes not being run



Thanks for your idea, will try that.

But just found out from payment company that URL page they receive as
response from my app is not always the payment page from my application
(only page which has link to their website).

These pages are from my application but contain no code to go to their
link!

Thinking this is the problem, but cannot understand how this could happen.

Any ideas ??







RE: JAVA servlet sometimes not being run


Dan Kimmel
to:
Java Programming on and around the IBM i
19/11/2012
18:04




Sent by:
java400-l-bounces@xxxxxxxxxxxx
Please respond to Java Programming on and around the IBM i








Some customer's browser still has old version of the page or javascript
cached? Best practice is to change the name of your javascript file when
you make changes in it to prevent cached copies from being used.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of mtodd@xxxxxxxxxxxx
Sent: Monday, November 19, 2012 5:19 AM
To: Java Programming on and around the IBM i
Subject: RE: JAVA servlet sometimes not being run



Hi,

Implemented Jeffs suggestion where my Java Script dynamically fills Action
variable.

But program still sometimes goes to payment company withour writing record
to iSeries.

I know this because I write a log record when Javscript writes to iSeries
(there is no record) but there is a log record stating that payment company
has called my response URL.

Have no idea how this keeps happening as Jeffs suggestion seemed foolproof.

Any ideas/help greatly appreciated.









RE: JAVA servlet sometimes not being run


Jeff Burcher
to:
'Java Programming on and around the IBM i'
06/11/2012
15:43




Sent by:
java400-l-bounces@xxxxxxxxxxxx
Please respond to Java Programming on and around the IBM i








I am an RPG programmer and have never really used JAVA for web development.
What I suggested should work regardless of the programming language. I use
PHP for my web development work, but I think RPG 4 can do web stuff as well
by building HTML on the fly? I have used BCD's WebSmart products in the
past to integrate that type of work on the AS400. Good Luck!

Thanks,

Jeff Burcher - IT Dept
Allred Metal Stamping
PO Box 2566
High Point, NC 27261
(336)886-5221 x229
jeff@xxxxxxxxxxxxxxx


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of mtodd@xxxxxxxxxxxx
Sent: Tuesday, November 06, 2012 10:31 AM
To: Java Programming on and around the IBM i
Subject: RE: JAVA servlet sometimes not being run



OK thanks for quick reply.

Will give that ago, but might take me a while as not to proficient a
Java/Java
script porgrammer (more RPG!)






RE: JAVA servlet sometimes not being run


Jeff Burcher
to:
'Java Programming on and around the IBM i'

06/11/2012

15:22




Sent by:
java400-l-bounces@xxxxxxxxxxxx
Please respond to Java Programming on and around the IBM i








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.

Jeff
-----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
JAVA
Servlet.

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

But have had instances where JavaScript is not run and user goes
directly
to
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!



**********************************************************
*************************

CONFIDENTIALITY / DISCLAIMER NOTICE

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
intended
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
author
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
list
To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/java400-l.





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




**********************************************************
*************************

CONFIDENTIALITY / DISCLAIMER NOTICE

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
intended
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
author
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
list
To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.





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




************************************************************************

The Treasure Hunt Continues Online
Please register your interest by clicking here

Alternatively why not visit us on www.costco.co.uk

************************************************************************


CONFIDENTIALITY / DISCLAIMER NOTICE

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
intended 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 Online UK Ltd. If you have received
this communication in error please notify us by e-mailing the author or by
telephoning (01923 213113) and then delete the communication and any copies
of it.
This communication is from Costco Online 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
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.



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




************************************************************************

The Treasure Hunt Continues Online
Please register your interest by clicking here

Alternatively why not visit us on www.costco.co.uk

************************************************************************


CONFIDENTIALITY / DISCLAIMER NOTICE

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
intended 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 Online UK Ltd. If you have received
this communication in error please notify us by e-mailing the author or by
telephoning (01923 213113) and then delete the communication and any copies
of it.
This communication is from Costco Online 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
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.



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




************************************************************************

The Treasure Hunt Continues Online
Please register your interest by clicking here

Alternatively why not visit us on www.costco.co.uk

************************************************************************


CONFIDENTIALITY / DISCLAIMER NOTICE

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 intended 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 Online UK Ltd. If you have received this communication in
error please notify us by e-mailing the author or by telephoning (01923 213113) and then
delete the communication and any copies of it.
This communication is from Costco Online UK Ltd whose registered office is at UK Home Office,
Hartspring Lane, Watford WD25 8JS, England.

***********************************************************************************

#####################################################################################

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2021 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.