Hi there:

Reading through your note, it looks like maybe the issue is not a classpath
proboem because your error message says it is the *method* that is not found,
not the class Connect400 itself. So make sure that the method in your class
Connect400 is really called connect() (careful with case!) and also the
signature is correct. And yes, make sure there is no problem with maybe the
method being private or something..

Geeta

"Laxminarayan S (RBIN/DBA-ACF)" wrote:

> Hello all,
>
>        I'm just a beginer here. I have a small problem
>
>           I have written a servlet to connect to Database thru JDBC
> connection and get the relevant details based on the condition provided. I'm
> invoking the servlet from an HTML. When I write the JDBC connection code
> .i.e, registering driver, getting connection and all those things in the
> servlet and when invoked thru HTML, the servlet is running fine. But what I
> am trying to do is, actually I have a class where I have written code for
> JDBC connection. If I use this class and try to connect I'm getting an error
> telling "No such method error".. Actually I have the servlet class, the jdbc
> connection class etc all in the same directory, in addition to it the jdbc
> connection code is public. I'm not getting to know why is this. Can somebody
> help me.
>
>         A little bit elaboration on the above...
>
>         My JDBC class for making connection is    Connect400.java (this
> returns a connection object)
>
>         The servlet what I'm using is TestServlet  and the code for making
> the connection is
>
>           Connect400 myConnect400=new Connect400();
>         Connection as400Connection = myConnect400.connect();
>
>                   Here instead of the two lines above if I try making
> connection writing all the code i.e
>
>               Register driver;
>               get connection
>                etc..
>
>                     This is working fine..
>
>             But I'm trying to reuse the code and I'm not able to know why is
> this problem..
>
>                     I feel the problem is setting up the class path or
> something like that.. may be right or may not be.. please help me.
>
>           Also there is another problem..
>
>                   When I use Javascript for validations it is not working in
> a servlet.. i.e
>
>             I invoke a servlet thru HTML taking some values, Since I want to
> validate the values I'm using javascript to validate them. For the first
> time on the HTML the javascript is working fine. Once when everything is
> correct the Servlet is invoked and shows some answer and I'm throwing the
> same HTML(the first one) again in order to capture the values again and try
> to validate, but during this time the Javascript doesn't seem to work. Can I
> know what is the mistake I'm doing.
>
> Thanx in advance,
> Laxminarayan
>
> ___________________________________________________________________________
> 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

Reply via email to