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



Ewout,


I suspect that the actual connection wont be established until you actually
try to use your as400 object. At that time I would expect to see either an
exception, or the java login window pop up (careful as this may appear
without focus, so be hidden behind other windows)

cheers
Colin.W


On 17/05/06, Ewout N Boter <ewout.boter@xxxxxxxxxx> wrote:

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.



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.