Hi Nathan, thank you for the for tips. I did make some progress.

Notes:

1. No, we currently do not serve web pages from our i server.

2. Change made to default Apache HTTP server: Renamed default index.html to _ORIGINAL_index.html

3. Created new index.html like this ...

<HTML>
<HEAD>
<TITLE>AS/400 Display Session</TITLE>
</HEAD>
<BODY>
<H2>AS/400 Display Session</H2>

<APPLET
CODEBASE = "/java/tn5250j"
CODE = "org.tn5250j.My5250App.class"
NAME = "tn5250j - Java Telnet 5250 Client "
ALT = "tn5250j cannot start. Browser may not support Java."
WIDTH = 600
HEIGHT = 400
HSPACE = 0
VSPACE = 0
ALIGN = top
ARCHIVE = "tn5250j.jar"
>
<PARAM NAME ="host" VALUE= "10.15.0.10">
<PARAM NAME ="-e" VALUE= " ">
</APPLET>

</BODY>
</HTML>

4. Added the tn5250j directories (ftp, java, www) to /www/apachedft/htdocs
htdocs ---+--- ftp ---+
|
|
|
+--- java ---+
| |
| +--- tn5250j
|
+--- www ---+
|
+--- images

5. Started the HTTP server APACHEDFT

6. Now When I browse to the server at port 80 I get the following error:
Exception: java.lang.ClassNotFoundException: org.tn5250j.My5250App.class


From: Bob Schwartz
Does anyone have an example for V5R4 that I could use?

Are you already using your IBM i server to serve web pages? If so, I think that you can place the tn5250j.jar and TN5250JDefault.props files in an IFS directory that is accessible from your Apache server, and reference them from an HTML page.

I think this page will bring up TN5250J on my server, for example:

http://www.radile.com/rdweb/tnj/tnj.html


You may be prompted to download or upgrade your Java plugin. You may need to resize your browser window to have the TN5250J client fill the screen.

I don't know what to suggest without knowing more about what your current set-up is.

-Nathan

This thread ...

Follow-Ups:

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

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