How does Servlet access a Database

1999-04-10 Thread yong hu
Hi: Servlet is a good thing,but I want to use it to access a Oracle Database,what should I do?Only may I use JDBC to do it?Does Servlet provide a interface to the Database? Thank you in advance. I am looking forward to your help. Yours

Servlets And OWAS

1999-04-10 Thread yong hu
Hi: I am now using Oracle's Web Application Server3.1 and hope to use Servlets.But OWAS3.1 doesn't surport Servlet and IIS can do so with Jran.Then I think that if I use IIS as OWAS's web listener,OWAS can surport Servlet.How do you think my idea?Does you think it is feasible?Can you give me

Re: How does Servlet access a Database

1999-04-12 Thread yong hu
ODBC-JDBC for the database connection. My oracle database in DEC machine and I use Jigsaw in my NT machine. It is easy to setup. You only have to setup JDBC, and use it. I hope it will be helpful - Bert - -Original Message----- From: yong hu [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTE

Why a JDBC-Servlet doesn't work?

1999-04-14 Thread yong hu
Hi: I has write a JDBC-Servlet file,but it doesn't work,the error information in the browser is 'having a internal server error' and exception is 'Java.lang.NullPointerException'. I use oracle7.3 RDBS ,oci7 JDBC Driver and SUN Java Web Server. The following is my code: import java.sql.*;

Question of JDBC-Servlet

1999-04-15 Thread yong hu
Hi: I has received your suggetion about why my JDBC-Servlet not to work,and set the variable conn to a public one,the code is following: import java.sql.*; import java.io.*; import java.util.Date; import javax.servlet.*; import javax.servlet.http.*; public class SJdbcTest extends HttpServlet

About Browser's Java Contrl

1999-04-15 Thread yong hu
Hi: I want to use System.out.println() to show infomation of my code executing,but the Java Contrl of my browser(IE4.0 and NV4.0) doesn't show anything. Hope that you give me help. Thanks in advanc. Regards. HuYong __ Get Your Private, Free

Why JDBC Class can't be loaded in Servlet

1999-04-18 Thread yong hu
Hi: I use oracle's JDBC driver oci7 in my Servlet.But the class can't be loaded. The following is the code: import java.sql.*; import java.io.*; import java.util.Date; import javax.servlet.*; import javax.servlet.http.*; public class SJdbcTest extends HttpServlet { public Connection

Servlet and Servlet Communication

1999-04-20 Thread yong hu
Hi: I am a beginer of Servlet and want to know how a servlet communicates with another.Might you tell me where I can get some sample code of it? Any code you give me will also be very helpful to me. Thanks. Regards. Huyong __ Get Your

How to read chinese information from Oracle database

1999-04-22 Thread yong hu
Hi all: I want to read chinese information from Oracle,but get the mess.I try to use res.getString(),res.getBytes() ect.,but it is no use.Can you give me some help? My platform is javawebserver1.1.3,Oracle jdbc driver(oci7) or jdbc-odbc bridge. Thanks. Regards. Huyong

About the develop tools of Java servlet

1999-04-24 Thread yong hu
Hi all: I want to use SUN's java WorkShop2.0 to develop java servlet and want to know where I can free download it. At the same time,are there other visual developing tools of servlet? Any information will be helpful to me. Thanks in advance. Regards HuYong

Re: Where put resource classes in JWS?

1999-04-26 Thread yong hu
Rafa: Make your class file to .jar file using JDK's jar.exe and put this .jar file to javawebserver\lib\,then add javawebserver\lib\.jar to classpath. Good Luck. Huyong From: Rafa³ Knopa [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's JavaServlet API

Re: About BindException

1999-10-08 Thread Yong Hu
Thanks,with your help,I has resolved that question.I close the serversocket in destroy() method and it works well. Howerver I meet with another question.I want to know if the serversocket is my hope beacause the applet can't talk with servlet well.Then after create the serversocket on port

Re: About BindException little change

1999-10-11 Thread Yong Hu
vijaya, Thanks for your help.I has tried your code and it works well.But there is a bug in the code.The code "ServerSocket rSocket = new ServerSocket(SERVLET_PORT)" will throw a excepiton:address in use unless I close the serversocket first. I has another quetion about RMI.I create tow RMI

Re: Single Thread

1999-10-11 Thread Yong Hu
You may unload the old servlet firstly,then load it again. good luck Huyong From: Sunil Dua [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Single Thread Date: Mon, 11 Oct

Re: Resultset in a servlet

1999-10-11 Thread Yong Hu
Use if(!result.next()){ //the code executing when there are no records fetched } HuYong From: Sunil Dua [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Resultset in a

Re: How to open a file using Web Address ?

1999-10-12 Thread Yong Hu
How can I to make a connection to the server and retrieve the file if the file I am trying to open is not in the same machine ? From: Andras Balogh [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To:

Re: About BindException bug

1999-10-12 Thread Yong Hu
To: [EMAIL PROTECTED] Subject: Re: About BindException bug Date: Tue, 12 Oct 1999 07:28:24 -0400 Yong, The bug is nothing but if try to use the same port again it gives exception. i think you follow this.. -- From: Yong Hu[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list for

About tools of servlet

1999-10-13 Thread Yong Hu
All, Are there some "visual" tools to "develope" and "debug" the servlet. Thanks advanced. Huyong __ Get Your Private, Free Email at http://www.hotmail.com ___ To

Re: Servlets on IIS4

1999-10-15 Thread Yong Hu
You may download Jrun Server from www.jrun.com.Jrun Server works good with IIS. From: Rizwan Quadri [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Servlets on IIS4 Date:

Tools of Servlet

1999-10-20 Thread Yong Hu
all, Are there any tools which can develope and debug servlets visually? Thanks Huyong __ Get Your Private, Free Email at http://www.hotmail.com ___ To unsubscribe,

Servlet and RMI

1999-11-01 Thread Yong Hu
all, I has write a applet communicating to server-side java using RMI. When the server-side java is a application(including a main() function),it work well.Howerver when server-side java is a servlet,it can't work and throw a exception when executing lookup(): Hit remote exception: Return

RMI can't work

1999-11-01 Thread Yong Hu
Hi, I want to use RMI to implement the communication between applet and servelt.When applet is in the same directory(my servlet directory: c:\websphere\appserver\servlets\) as servlet(including Servlet_stub.class and Servlet_skel.class),it can work well. But when they are not in the same

About IBM Websphere

1999-11-01 Thread Yong Hu
Hi, I am using IBM's Websphere as my servlet server. It's servlets phisical path is c:\websphere\appserver\servlets\ and virtual path is /servlet.I create my directory under c:\websphere\appserver\servlets\ ,such as myservlet and place my servlet (nameed Test.class) in it. When I use

Re: About IBM Websphere

1999-11-02 Thread Yong Hu
Thanks for your help.In your way,I has resolved the problem. From: Ben Dinnervile [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: About IBM Websphere Date: Tue, 2 Nov

about weblogic

1999-11-02 Thread Yong Hu
Hi, I want to BEA's weblogic as my servlet server,but I don't know where I should place my servlet class and how call it in browser. I use http://localhost:7001/servlet/HelloWorldServlet but browser can't find the class. thanks in advance. Huyong

how to registry a servlet in weblogic?

1999-11-03 Thread Yong Hu
] Subject: Re: about weblogic Date: Wed, 3 Nov 1999 09:52:07 -0500 Hi, did you register your servlet in the properties file? Tolu Agbeja HLD BT [Concert] Tel: 770-801-4549 Tel: 770-801-2549 -Original Message- From: Yong Hu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 02, 1999

Re: RMI or Servlet ??

1999-11-03 Thread Yong Hu
Servlet is the best.You can use applet or HTML fiel as the client and applet talks with servelt easilly using URL/URLConnection API. If you use RMI,you must use applet as the client and the programing is complex. From: Christian Nateghi [EMAIL PROTECTED] Reply-To: "A mailing list for discussion

Servlet and RMI

1999-01-02 Thread Yong Hu
I develope a servlet as RMI server.The client is applet.I put the servlet class and related stub class,skel class in servlet root directory(as to websphere,that is c:\websphere\appserver\servlets). My problom is: if I put applet class in the same directroy as the servlet class,it works

servlet and EJB

1999-11-09 Thread Yong Hu
all, Can servelt talk with EJB? I want to implement a model: applet---servlet---EJB.Is it possible? Thanks in advance. Huyong __ Get Your Private, Free Email at http://www.hotmail.com

Re: servlet and EJB

1999-11-10 Thread Yong Hu
erver do we use? Yong Hu [EMAIL PROTECTED] on 11/09/99 11:01:48 PM Please respond to "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Steve Buonincontri) Subject: servlet and EJB

About Object in servlet

2000-01-05 Thread Yong Hu
Hi, I wish that a servlet read information from applet,which is a object implementing java.io.Serializable.I define the object as a file ,which is add to a .jar file.I use visual cafe compile the servlet and it is successful.But when it run,the code Myobject ob=new Myobject() throw a

Re: Servlet in Weblogic

2000-01-08 Thread Yong Hu
rs, that's probably why the servlet couldn't find UserInfo. try to put them in the same classpath? From: Yong Hu [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Servlet i