Re: JDBC connection

2001-05-11 Thread drew w
this is what I have in mine Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); >From: Sharon Om <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: JDBC connection >Date: Fri, 11 Ma

Re: invalid object AwardPerson

2001-05-10 Thread drew w
I pasted the wrong message. Sorry, I didn't mean to insult anyone. I was in a hurry and didn't want to send it like that. My mistake. _ Get your FREE download of MSN Explorer at http://explorer.msn.com ===

invalid object AwardPerson

2001-05-10 Thread drew w
import java.sql.*; /** * DataBaseInsert.java * Written by Morgan Catlin Email: [EMAIL PROTECTED] * August 19, 1999 * * Variables: * String something = something to insert into the database * * Methods: * String getSomething() = returns something * void setSomething() = sets something *

comparing null

2001-05-09 Thread drew w
String Uname = request.getParameter( "UserName" ); String Pword = request.getParameter( "PassWord" ); if (Uname == null){ //<< this never works, I have tried =="" and .equals any ideas? String pMsg = "Please enter a username and password."; session.setAttribute( "Msg", pMsg );

Re: sendRedirect from jsp page

2001-05-09 Thread drew w
thanks, works perfect. andrew >From: Ross Lambert <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: sendRedirect from jsp page >Date: Wed, 9 May 2001 10:53:26 -0700 > >andrew- > > > Do I have to build a function: > > public abstract void sendRedirect(String l

sendRedirect from jsp page

2001-05-09 Thread drew w
Do I have to build a function: public abstract void sendRedirect(String location) throws IOException if so how can I invoke it from jsp? thanks, andrew _ Get your FREE download of MSN Explorer at http://explorer.msn.com ==

Re: simple interface error

2001-05-04 Thread drew w
your post, and I imagine >I'll fail now, tomorrow, and the day aft... oh, heck, I'll just go ahead >and >give up with that now. > > >>From: drew w <[EMAIL PROTECTED]> >>Reply-To: A mailing list about Java Server Pages specification and >> re

Re: simple interface error

2001-05-04 Thread drew w
So what do I have to change? thanks, andrew >From: Venkat Alladi <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: simple interface error >Date: Fri, 4 May 2001 16:26:29 -500 > >Metho

simple interface error

2001-05-04 Thread drew w
I am creating a simple interface called common: public interface Common{ public String printError(String msg){ String errmsg; errmsg = ("Sorry "+getName()+", "+msg); } } when I compile I get this message: Abstract and native methods cannot have a body: String printError(String msg) public String p

Re: 3 classes in same dir can't see each other

2001-05-02 Thread drew w
to get some assistance from this list, post the source > > code of your > > .java files as well as the classpath settings and your > > directory structure > > in which the files are present. > > Be sure someone out here would surely help you :-). > > Have a ni

Re: 3 classes in same dir can't see each other

2001-05-02 Thread drew w
;Be sure someone out here would surely help you :-). >Have a nice day. >With regards, >Sachin S. Khanna >http://www.emailanorder.com >- Original Message - >From: drew w <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, May 02, 2001 3:03 AM >Subject: 3 cl

3 classes in same dir can't see each other

2001-05-01 Thread drew w
I am trying to reference one class file from another but for some reason it isn't working. I have set the CLASSPATH to point to this dir. I have set the PATH to point to this dir. I have put "package project;" at the top of each one. I have even tried "import Person;" which is the name of the clas

Re: how to reference a different class file

2001-04-30 Thread drew w
at, 28 Apr 2001 13:35:11 +0800 > >xin_kang£¬ÄúºÃ£¡ > > import project.Person > >ÔÚ 2001-04-28 10:20:00 ÄúдµÀ£º > >drew w£¬ÄúºÃ£¡ > > > > you need import the package where Person is. > > > >ÔÚ 2001-04-27 23:06:00 ÄúдµÀ£º > >>package project; // this

Re: JDBC Driver NetDirect

2001-04-30 Thread drew w
JDBC Driver NetDirect >Date: Sat, 28 Apr 2001 14:03:24 +0800 > >drew w£¬ÄúºÃ£¡ > > is it free? > >ÔÚ 2001-04-26 18:04:00 ÄúдµÀ£º > >What about NetDirect Standard Edition. > > > > > > > >>From: Celeste Haseltine <[EMAIL PROTECTED]> > >&

how to reference a different class file

2001-04-27 Thread drew w
package project; // this doesn't seem to work public class PersonServer implements Person{ //Person is an external interface that I want to access int age; String name; public PersonServer(String name, int age){ this.age = age; this.name

Re: to reload a page once automatically

2001-04-27 Thread drew w
>From: Charles Luo <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: to reload a page once automatically >Date: Fri, 27 Apr 2001 16:01:02 +0100 > >Guys, > >Just a quick question? > >How c

Sessions in Servlets

2001-04-26 Thread drew w
I can access sessions in JSP. But I can't seem to write or read them in my servlet. Is this possible. Here is the code: session.setAttribute( "blnIsLoggedIn", true ); Error: Undefined variable or class name. I am importing: import java.io.*; import java.util.*; import javax.servlet.*; I also t

Error: Attempt to reference method in interface ...

2001-04-26 Thread drew w
if (request.getParameter.equalsIgnoreCase("andrew")){ pw.print("you are logged in "+ request.getParameter("username") +" "+ request.getParameter("password")); } else{ pw.print("you are not logged in "+ request.getParameter("username") +" "+ request.getParameter("password"));}

Re: JDBC Driver

2001-04-26 Thread drew w
http://www.j-netdirect.com/Pricing.htm#JSQL >From: Celeste Haseltine <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: JDBC Driver >Date: Thu, 26 Apr 2001 09:58:47 -0500 > >Aneesha, > >

Re: Any site?

2001-04-26 Thread drew w
How about www.jsptut.com or www.jspinsider.com. >From: "Mathew, Aswin (CTS)" <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Any site? >Date: Thu, 26 Apr 2001 12:17:28 +0530 > >Hi all,

Re: JSP,Servlets and IIS

2001-04-26 Thread drew w
>the extension (.asp or .jsp). ASPs and JSPs are handled by different >engines (ASP engine or Java Servlet Engine), theoretically they do not >interfere with each other. > > > >JJ Fu >SUN Certified Java programmer >Sr Web Developer >Compass Bank > > >>&g

Re: JDBC Driver

2001-04-26 Thread drew w
What about NetDirect Standard Edition. >From: Celeste Haseltine <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: JDBC Driver >Date: Thu, 26 Apr 2001 09:58:47 -0500 > >Aneesha, > >If y

Simple login not working...

2001-04-25 Thread drew w
if (request.getParameter("username") == "andrew" && request.getParameter("password") == "andrew"){ pw.print("you are logged in "+ request.getParameter("username") +" "+ request.getParameter("password")); } else{ pw.print("you are not logged in "+ request.getParameter("username

Re: JSP,Servlets and IIS

2001-04-25 Thread drew w
<[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: JSP,Servlets and IIS >Date: Wed, 25 Apr 2001 15:15:57 -0500 > > > -Original Message- > > From: drew w [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>] > > Sent:

JSP,Servlets and IIS

2001-04-25 Thread drew w
Can I use ASP(Active Server Pages) and JSP on IIS or at least on the same machine. I have a website built in ASP on IIS, but I want to slowly start moving to a Java-based application. Can they play together? thanks, andrew _ Get your

It's working

2001-04-25 Thread drew w
I don't know what was wrong with the JSWDK but I downloaded the JSDK and ran servletrunner. The servlets are working fine now. Thank you, drew _ Get your FREE download of MSN Explorer at http://explorer.msn.com =

Getting Errors in NS

2001-04-25 Thread drew w
In NetScape... When I run an example from the jswdk I get: Error: 500 sun/tools/javac/Main When I run my personal servlet I get: Error: 404 File Not Found /examples/HelloServlet Can anyone give a recommendation? thanks, drew

Re: /examples/HelloServlet Page not found error

2001-04-25 Thread drew w
;t know what's your Server so I can just recommend to do some >investigation in deploying of WebApps and Servlet-Mapping. > >Regards, >Stefan > > >- Original Message - > >From: "drew w" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]&g

Re: /examples/HelloServlet Page not found error

2001-04-25 Thread drew w
va_home%\lib\jsdk.jar", to you class path. >%java_home%, is the first "jdk" installation directory. > >Regards, >Santosh > >- Original Message - >From: "drew w" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, Apr

even when I run examples I get HANDLER THREAD PROBLEM

2001-04-24 Thread drew w
When I download and install JSWDK, I get the HANDLER THREAD PROBLEM: Socket Closed _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To uns

why are there two Web-INFs' one in examples and one in webpages?

2001-04-24 Thread drew w
Should I be updating them both? _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "sign

HelloServlet

2001-04-24 Thread drew w
I don't see web.xml in the Web-INF dir. It is a servlet. Here is a mappings.properties: # $Id: mappings.properties,v 1.3 1999/04/05 21:20:02 duncan Exp $ # Map servlets to paths # Properties beginning with a . are extension properties, all other # properties are path properties /snoop=snoop .s

can't run servlet

2001-04-24 Thread drew w
When I look at my server log I see: HANDLER THEAD PROBLEM: java.io.IOException: Socket Closed java.io.IOException: Socket Closed at java.net.PlainSocketImpl.getInputStream(Unknown Source) at java.net.Socket$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method)

/examples/HelloServlet Page not found error

2001-04-24 Thread drew w
When I type localhost:8080/examples/HelloServlet I get: Page not found error When I type localhost:8080/examples/HelloServlet.class I get: Download file pop-up box ... Does anyone know what might be the problem? Thanks, Andrew _

Re: package not found in import

2001-04-24 Thread drew w
t; >Andrew, >Your first import is incorrect. IOException is in java.io, not javax.io. >The 2nd error might be because you don't have servlet.jar in your >classpath. > >Regards, > >Richard > > > >-Original Message- >From: drew w [mailto:[EMAIL PROTE

package not found in import

2001-04-24 Thread drew w
When I try to compile my servlets, I get: Package javax.io.IOException not found in import. and... Package javax.servlet.ServletException not found in import. my code: import javax.io.IOException; import javax.servlet.ServletException; public class HelloServlet extends GenericServlet{ public v

How can I pass the value of a session to an interface

2001-04-24 Thread drew w
I have a interface that I want to use to format messages. For example if there is an error: I will assign it to a session, redirect to display. On this page, I call the formatting function from the interface to show the contents of the session in RED. In my interface I write: import javax.http.