|
Yep - and that seems to be the case. I can generate a nice little applet that puts up a nice little screen and does most of the event processing. I just cannot get the doggone thing to connect to a database... At least using the ODBC/JDBC part. I guess I could hand write the Java to do the database connections and such, but it sure seems like VARPG should be able to do it. I could be wrong of course, or it may be something about Applets that doesn't let it work. The manual specifically says that JDBC won't work, but I rather assumed that to mean that ODBC would. -Paul
-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Helgren Sent: Wednesday, December 06, 2006 9:13 PM To: RPG programming on the AS400 / iSeries Subject: Re: VisualAge RPG, Database Access, and Applets... Paul, An applet is just a java class that has been deployed via an HTML page reference. That makes it a "think client" in that the java classes are transferred to the local client machine (at least once). So the decision to create a java "applet" is just an implementation question, not a programming one. Theoretically any stand alone java program can be deployed via an applet. As I understand it, VisualAge can generate java classes. You could reference that class from within the and HTML page with an applet tag. e.g. <APPLET CODE=/AppletSubclass/.class WIDTH=/anInt/ HEIGHT=/anInt/> <PARAM NAME=/parameter1Name/ VALUE=/aValue/> <PARAM NAME=/parameter2Name/ VALUE=/anotherValue/> </APPLET> So, the issue about an applet is more of an implementation issue rather than something determined by using Visual Age. At least that is my understanding. Pete Helgren P. Raulerson wrote:Well, the applet is served off the same machine, but the user issomewhereelse - off on the internet or whatever I suppose. I have consideredusingCGI, or even just distributing a thick client, but an Applet would be so easy... -Paul-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Booth Martin Sent: Wednesday, December 06, 2006 8:19 PM To: RPG programming on the AS400 / iSeries Subject: Re: VisualAge RPG, Database Access, and Applets... If its on the same machine, does it have to be an applet? Why not a regular Windows program? It suggest that because the answer to your question is "Yes, but itsnotpretty" P. Raulerson wrote:Is it possible to create an applet from VARPG and have it access adatabase?If so, has anyone got an example they are willing to share? Needs toaccessa DB/2 UDB database running on the same Windows machine that isservingupthe applet. Help? Thanks -Paul-- --------------------------------- Booth Martin http://www.Martinvt.com --------------------------------- -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailinglistTo post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.-- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.