× 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.



The applet is being served from the iSeries Apache web server from IFS. Jdbc connection is being initiated back to the same url as the applet was served from.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael Hawes
Sent: Friday, July 25, 2008 8:13 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: using jt400 in a java applet

I thought an applet can't communicate with any server other than the one that served it. See this document I found (http://java.sun.com/sfaq/#socket):
How can an applet open a network connection to a computer on the internet?
Applets are not allowed to open network connections to any computer, except for the host that provided the .class files. This is either the host where the html page came from, or the host specified in the codebase parameter in the applet tag, with codebase taking precendence.
I've never written an applet however I'd think you'd have to serve up the applet from the as400 that you're trying to connect to.



----- Original Message ----
From: Mike Cunningham <mcunning@xxxxxxx>
To: Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx>
Sent: Friday, 25 July, 2008 2:18:21 AM
Subject: RE: using jt400 in a java applet

No logon prompt. There is a userid and password supplied on the JDBC connection string.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Perkins
Sent: Thursday, July 24, 2008 8:15 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: using jt400 in a java applet

I could be wrong, but I think you might want to create your own login
applet. My theory is that the AS400 object you are creating is attempting to
launch the AS400 sign-on dialog box. I don't think that will work in an
applet, but it would in your PC.

You could just try creating your AS400 object like AS400(systemName, user,
password) and see if that works.

I've never written an applet though, so I could be wrong, but it's my best
guess.

Hope this helps,
James R. Perkins

On Thu, Jul 24, 2008 at 2:18 PM, Mike Cunningham <mcunning@xxxxxxx> wrote:

I found a way to run the applet (thanks to the vendor who created the tool
that built the applet) outside a browser and the applet ran OK and was able
to run from my PC and use the jt400 jar classes without a problem. The same
applet and same jt400.jar initiated from a browser does not run. It gets the
security error when trying to use jt400.jar. Must have something to do with
the browsers java sandbox and the security that does not let access outside
the sandbox. Results have been the same in IE and Firefox and Safari.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:
java400-l-bounces@xxxxxxxxxxxx] On Behalf Of David B. Harrison
Sent: Thursday, July 24, 2008 2:59 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: using jt400 in a java applet

Based on what I've seen, the fully qualified domain name or the IP has
to match, exactly.

David

Mike Cunningham wrote:
I am connecting to the same host the applet was downloaded from. Does the
name in the jdbc connection need to match the full name of the web server?
  Web server url is myserver.pct.edu, jdbc just has myserver


--
This is the Java Programming on and around the iSeries / AS400 (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 iSeries / AS400 (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 iSeries / AS400 (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 iSeries / AS400 (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 iSeries / AS400 (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.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.