|
Ewout, Not to sound like a shill but I learned about DB access to the 400 from "Introduction to Java Using WebSphere". However, it doesn't cover using Faces JSP data components and I have been stuck trying to get those to work with any DB.... Hope that helps. ----- Original Message ----- From: Ewout N Boter <ewout.boter@xxxxxxxxxx> To: web400@xxxxxxxxxxxx Sent: Wed, 17 May 2006 16:05:58 +0200 Subject: [WEB400] Connecting to AS/400 from within a JSP page > This posting is a sequel of my previous posting about JSP and the IBM > Toolbox for Java. > > I have modified the page Messages.jsp. The user should now enter a system > name, a user name and a password. On the page GetMessages, I have added > the following scriptlet: > > <% > try > { > AS400 anAS400 = new AS400(system, username, password); > out.println("Connection established..."); > } > catch (Exception e) > { > e.printStackTrace(); > } > %> > > The parameters system, username and password are taken from Messages.jsp. > Now, to test this setup, I have entered some gibberish values in the > parameter fields. I expected that an exception would be thrown, but > instead I got a page showing the text "Connection established". > > Basically, my question is the following: how do I proceed when I want to > make a connection to an AS/400 (or iSeries, or i5) from within a JSP page? > > This stuff is all very unfamiliair to me. Are there any good tutorials > about JSP and iSeries? (Of course, there are lots of tutorials about JSP > in general, but I would like to focus my JSP efforts on the iSeries. > Tutorials covering that combination are harder to find.) > > Thanks in advance. > > Ewout > -- > This is the Web Enabling the AS400 / iSeries (WEB400) mailing list > To post a message email: WEB400@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/web400 > or email: WEB400-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/web400. -- This email was brought to you by Kaxy Mail http://www.kaxy.com/free_email_account.htm
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.