Magnus,

Thanks .. now for a really stupid question ... where do the class hide these
days. =(  I've looked for the environment variables for ClassPath .. well
found nothing on NT! =(  Ever since 1.1 and the disappearance of the batch
file I've never been able to figure that part out.

Michael J. Fuhrman
Reliable Business Computers
http://www.creliable.com


-----Original Message-----
From: Magn�s ��r Torfason [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 27, 1999 10:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Question - some slightly more advanced thoughts


At my company we use a lot of our own classes, but so far, we have not found
any need for beans.  The fact is that using your own, or third party classes
is as simple as setting the correct classpath.  We read-share our root
directory for classes, and all the JSE server as well as all the clients
(development stations) include this classpath.  This means that classes
located in this directory tree ( in our case :  /classes/is/ncd/* ) can be
used in java programs on all the clients, AS WELL AS on the server.  Using a
class in a JSP page is as easy as:

<% is.ncd.MyPersonalClass.myStaticFunction( myVeryOwnArguments, etc ); %>

or

<%
    is.ncd.MyPersonalClass myInstance = new
s.ncd.MyPersonalClass( constructorArgument );
    myInstance.myNonStaticFunction( etc1, etc2 );
%>


( import statements make the code much cleaner of course )

Magnus Torfason
NCD


----- Original Message -----
From: Michael Fuhrman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 27, 1999 1:29 PM
Subject: Re: Newbie Question


> Luc,
>
> Thanks for the example, ... but this is a class that already exists .. I
> mean, was created as part of Java.  What I'm interested in is how it gain
> access to a class that I've created.
>
> Michael J. Fuhrman
> Reliable Business Computers
> http://www.creliable.com
>
>
> -----Original Message-----
> From: Luc Saint-Elie [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 26, 1999 5:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie Question
>
>
> Michael,
>
> Here is the way I use a class called DBconnection (a JDBC connection
poll):
>
> <%@ page language="java" import="java.sql.*,DBConnectionManager" %>
>
> <%!
> DBConnectionManager connMgr = DBConnectionManager.getInstance();
> %>
> <html>
> [...]
> <%
> Connection con = connMgr.getConnection("idb");
>           if (con == null) {
>           out.println("Can't get connection");
>           return;
>
>
>
> Le 17:25 26/08/99 -0400, Michael Fuhrman a �crit:
> >I have a Java Class and would like to use it in a JSP file.
> >
> >How do I get the two linked?
> >
> >Please provide simple hello world example
>
> +------------------------------------------------+
> | Luc Saint-Elie                                 |
> | 75018 Paris France                             |
> | Tel: 1(212)894 3713 ext: 0012                  |
> | email : [EMAIL PROTECTED]                    |
> +------------------------------------------------+
> | Java Server Side Open Source technologies      |
> | http://www.interpasnet.com/JSS                 |
> +------------------------------------------------+
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to