• Subject: Servlets
  • From: "Richard Dean" <rddean@xxxxxxx>
  • Date: Fri, 31 Dec 1999 00:31:38 -0500
  • Importance: Normal

Well I seem to have WebSphere up and I can pull up the servlet examples and
they run, including the servlets that access the database.  My next question
is how can I compile the my own "HeloWorld" servlet.  There is an example in
the setup instructions for "WebSphere 1.1" (which is what we have).  So, I
created the sample HelloWorld servlet and set up my "classpath" using the
"ADDENVVAR" command like it said and then I tried to compile the servlet.
Of course it did not like the import of "javax.servlet.*" or
"javax.servlet.http.*", which I expected.  I was trying to compile this on
the AS/400 in the Qshell.  I was able to compile a simple
"System.out.println" program and run it in Qshell and it worked.  So I guess
the question is do I need to install the "servlet" API on my AS/400 somehow,
or do I need to import from some place other than "javax" (I tried to import
from "com.sun.java", but it did not work), or do I need to install the
"servlet" api on my PC somehow and compile the program there first and then
copy the class to the as/400?

I also noticed that all the example servlet sources that I could find on the
AS/400 had the "import jaxax......." in them, so I am real confused.

Any help would be appreciated.  I am running V4R4M0 of the O/S, and
WebSphere 1.1.

Thanks,
Richard Dean

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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