I *think* that "text/html" is assumed unless you set it otherwise, and you
may need to modify the servlet "properties" or "mapping" file (dep. on your
WebServer) in order to load the servlet, if you changed the class name.
Beyond that, I dunno.
Ted Neward
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward
"I don't even speak for myself; my wife won't let me." --Me
-----Original Message-----
From: Michelle Kaston <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, June 18, 1999 6:47 AM
Subject: Re: connecting to Oracle 8 on NT
>Hi - Actually, I figured out my connection problem.... I had to install the
>jdbc driver stuff to Oracle... but now I have a different problem. What
>I'm trying to do is fill out a form and have the information inserted into
>a table. First I was getting the connection failure, which is now fixed.
>Now my brower is telling me that I have no data (or can't find the page)
>even though I filled out the form.
>
>I'm trying to learn servlets from copying and modifying others code and I
>noticed
>that in most places when it gets ready to print output of html, all the
html
>stuff is preceeded by these 2 lines:
>
>response.setContentType("text/html");
>PrintStream out = new PrintStream(response.getOutputStream());
>
>are these lines ALWAY necessary? I've found one place in the code that
prints
>html stuff that doesn't have this in front of it.
>
>I tried modifying it and creating the class except that I'm getting an
>error (can't find class "Main".......). Original class creation was on
>a different machine than I'm on now.
>
>Any ideas on either of these things?
>
>Thanks,
>Michelle
>
>At 11:27 AM 6/18/99 +0530, you wrote:
>>Hi
>>
>>First, let me know whether u have created system DSN in the ODBC for
Oracle8
>>succesfully.
>>
>>-wilson
>>
>>Michelle Kaston wrote:
>>
>>> Hello all,
>>>
>>> I've just joined the list so if this question has already been answered,
>>> can someone point me to the archive where I can find the responses?
>>>
>>> I have a java servlet that I'm trying to get to talk to an Oracle8
>>> database (all running on NT server with service pack 4). I keep
>>> getting a "Database connection initialization error" and I'm not sure
>>> what's wrong or how to find out what's wrong. (this is my first time
>>> trying to create and run a servlet). Any help would be HUGELY
appreciated!
>>>
>>> TIA,
>>>
>>> Michelle
>>>
>>>
___________________________________________________________________________
>>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>>> of the message "signoff SERVLET-INTEREST".
>>>
>>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>> Resources: http://java.sun.com/products/servlet/external-resources.html
>>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>>--
>>
>>
>>
>>Attachment Converted: "c:\eudora\attach\wilsonp.vcf"
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html