Réf. : Re: add a new servlet ....

2001-03-28 Thread dsergent

ok fine, I creat a application in another folder (configured in 
server.xml) I put the class in a folder names Web-inf and in a subfolder 
names classes, but it doesn't work, my servlet doesn't start ... aaarg 
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To: 
[EMAIL PROTECTED]
 cc:
03/27/2001   Subject:     add a new servlet 

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner









Re: Réf. : Re: add a new servlet ....

2001-03-28 Thread Neill


Have you tested your setup and run any examples or snoop?

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



   
   
dsergent@imex  
   
pert.com To: [EMAIL PROTECTED]
   
 cc:   
   
03/28/2001   Subject: Rf. : Re: add a new servlet 
   
08:14 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   




ok fine, I creat a application in another folder (configured in
server.xml) I put the class in a folder names Web-inf and in a subfolder
names classes, but it doesn't work, my servlet doesn't start ... aaarg
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/27/2001   Subject:     add a new servlet

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner













Réf. : Re: Réf. : Re: add a new servlet....

2001-03-28 Thread dsergent

Excuse me but I don't understand what do you mean by tested my setup ... 
and I test it with a jsp page which is supposed to use a variable declared 
by the servlet but my variable is always null.

David






"Neill" [EMAIL PROTECTED]
28/03/01 16:07
Veuillez rpondre  tomcat-user

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : Re: Rf. : Re: add a new servlet 



Have you tested your setup and run any examples or snoop?

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To: 
[EMAIL PROTECTED]
 cc:
03/28/2001   Subject: Rf. : Re: add a new 
servlet 
08:14 AM
Please
respond to
tomcat-user






ok fine, I creat a application in another folder (configured in
server.xml) I put the class in a folder names Web-inf and in a subfolder
names classes, but it doesn't work, my servlet doesn't start ... aaarg
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
        Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/27/2001       Subject:     add a new servlet

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner















Re: add a new servlet ....

2001-03-28 Thread Neill


You stated you were not able to add a new servlet, have you been able to
run any servlets? If not, it may be an installation issue and that is what
should be addressed. If you have run at least the example Servlets and JSP,
then we can start looking closer at what's going on with this particular
one.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



   
   
dsergent@imex  
   
pert.com To: [EMAIL PROTECTED]
   
 cc:   
   
03/28/2001   Subject: Rf. : Re: Rf. : Re: add a new 
servlet 
09:31 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   




Excuse me but I don't understand what do you mean by tested my setup ...
and I test it with a jsp page which is supposed to use a variable declared
by the servlet but my variable is always null.

David






"Neill" [EMAIL PROTECTED]
28/03/01 16:07
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
Objet : Re: Rf. : Re: add a new servlet 



Have you tested your setup and run any examples or snoop?

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/28/2001   Subject: Rf. : Re: add a new
servlet 
08:14 AM
Please
respond to
tomcat-user






ok fine, I creat a application in another folder (configured in
server.xml) I put the class in a folder names Web-inf and in a subfolder
names classes, but it doesn't work, my servlet doesn't start ... aaarg
help me

David





"Neill" [EMAIL PROTECTED]
28/03/01 15:14
Veuillez rpondre  tomcat-user


Pour :  [EMAIL PROTECTED]
cc :
        Objet : Re: add a new servlet 



the directory structure of the web application is:
-TOMCAT_ROOT
- - webapps
- - - application root (this is where you place HTML and JSP files)
- - - - subdirectory (hierarchical organization of HTML and JSP files)
- - - -  WEB_INF (this is where web.xml will go)
- - - - - classes (this is where class files will go and is the CLASSPATH
of the application)


System.out.print statements will output to the Tomcat command line
(STOUT/STERR)
print statements using PrintWriter will output to the response object (to
your HTML page)



Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.




dsergent@imex
pert.com To:
[EMAIL PROTECTED]
 cc:
03/27/2001       Subject:     add a new servlet

04:50 AM
Please
respond to
tomcat-user






I try to add a new servlet which is supposed to load on startup. But I
don't know where I'm supposed to put the class file. If I use a println()
method in the init fonction of my class, where is it supposed to write
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer

David
a french tomcat beginner



















add a new servlet ....

2001-03-27 Thread dsergent

I try to add a new servlet which is supposed to load on startup. But I 
don't know where I'm supposed to put the class file. If I use a println() 
method in the init fonction of my class, where is it supposed to write 
something ???

my web.xml file :

servlet
servlet-name
Settings
/servlet-name
servlet-class
SettingsServlet
/servlet-class
init-param
param-namerootFile/param-name
param-valuec:\testJSP\init.conf/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet
servlet-mapping
servlet-nameSettings/servlet-name 
url-pattern/servlet/Settings/url-pattern
/servlet-mapping



thks a lot for your answer 

David
a french tomcat beginner



Re: add a new servlet ....

2001-03-27 Thread Samuel Arnod-Prin

You have to put your class into WEB-INF/classes or a jar in WEB-INF/lib

what do you mean with your println ? You can only write from init into
System.out or System.err.. you don't have any response object.

Anyway, what is the value to give for the load on startup ??

thank you,
Sam, a savoisian user ;)

[EMAIL PROTECTED] wrote:

 I try to add a new servlet which is supposed to load on startup. But I
 don't know where I'm supposed to put the class file. If I use a println()
 method in the init fonction of my class, where is it supposed to write
 something ???

 my web.xml file :
 
 servlet
 servlet-name
 Settings
 /servlet-name
 servlet-class
 SettingsServlet
 /servlet-class
 init-param
 param-namerootFile/param-name
 param-valuec:\testJSP\init.conf/param-value
 /init-param
 load-on-startup
 -2147483646
 /load-on-startup
 /servlet
 servlet-mapping
 servlet-nameSettings/servlet-name
 url-pattern/servlet/Settings/url-pattern
 /servlet-mapping
 

 thks a lot for your answer

 David
 a french tomcat beginner