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: Réf. : Re: Réf. : 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 répondre à tomcat-user
Pour : [EMAIL PROTECTED]
cc :
Objet : Re: Réf. : 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: Réf. : 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 ... aaaaaaarg
help me
David
"Neill" <[EMAIL PROTECTED]>
28/03/01 15:14
Veuillez répondre à 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-name>rootFile</param-name>
<param-value>c:\testJSP\init.conf</param-value>
</init-param>
<load-on-startup>
-2147483646
</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Settings</servlet-name>
<url-pattern>/servlet/Settings</url-pattern>
</servlet-mapping>
....
thks a lot for your answer
David
a french tomcat beginner