please help me

2001-01-08 Thread yaya

Hello..
Maybe this is out of topic, but i'm really thanksfull 
if anyone could give me many resources of jsp file
specially in connectivity with database, how to get 
 a form parameter in jsp, and get the result from database?
 
 please help me.
 
 Thanks

yaya




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




please help me

2001-01-04 Thread yaya

Error: 500
Location: /servlet/qry_training
Internal Servlet Error:

java.lang.NoClassDefFoundError: ap/servlets/html
 at qry_training.doGet(qry_training.java:106)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

How can solve this problem?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




please help me

2001-01-04 Thread yaya

Hello..
Maybe this is out of topic, but i'm really thanksfull 
if anyone could give me many resources of jsp file
specially in connectivity with database, how to get 
a form parameter in jsp, and get the result from database?

please help me.

Thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: please help me

2001-01-04 Thread yaya

i want to get information from database

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 04, 2001 5:56 PM
Subject: AW: please help me


At least tell us what are you trying to do in
/servlet/qry_training.java at line 106 and
some lines before.

P.S.: It's a common convention to use classnames
with upper case first letter. (Like QryTraining)

 -Ursprüngliche Nachricht-
 Von: yaya [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 4. Januar 2001 11:46
 An: tomcat milis
 Betreff: please help me
snip/
 java.lang.NoClassDefFoundError: ap/servlets/html
  at qry_training.doGet(qry_training.java:106)
snip/
 How can solve this problem?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




jsp bean error to find class

2000-12-20 Thread yaya

Hi,
I tried to connect to mysql database with bean but fail with following error
:
org.apache.jasper.JasperException: Unable to compile class for
JSP/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080/_0002fjsp_0002fdataba
seselect_0002ejspdatabaseselect_jsp_0.java:64: Class jsp.DatabaseSelect not
found.
DatabaseSelect select = null;
^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080/_0002fjsp_0002fdatabases
elect_0002ejspdatabaseselect_jsp_0.java:67: Class jsp.DatabaseSelect not
found.
select= (DatabaseSelect)
 ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080/_0002fjsp_0002fdatabases
elect_0002ejspdatabaseselect_jsp_0.java:72: Class jsp.DataBaseSelect not
found.
select = (DataBaseSelect)
Beans.instantiate(this.getClass().getClassLoader(), "DataBaseSelect");
  ^
3 errors

I already put DataBaseSelect.java  DataBaseSelect in
/usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes

Looks like it fail to find the class,..so where should I put the class file
?

This is the jsp files ( in
/usr/local/jakarta-tomcat-3.2.1/webapps/examples/jsp)
html
head
titleSelect everything from a database/title
/head
body

jsp:useBean id='select' class='DataBaseSelect' scope='page'
type="DatabaseSelect" /

% out.print(select.connect()); %
br
% out.print(select.select()); %

pFormat results

br
%@ page import="java.util.Vector" %
% Vector aResult = select.getResult(); %

table
% for (int i=0; i  aResult.size(); i++) { %
   tr
   td
   % out.print(aResult.elementAt(i)); %
   /td
   /tr
% } %
/table

/body
/html

Thanks