Re: add a new servlet ....
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 ... aaarg 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 : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
Réf. : Re: Réf. : Re: add a new servlet....
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 ... aaarg 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 : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
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 ... aaarg 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 : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
Réf. : Re: add a new servlet ....
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 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 : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
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 : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner
Re: add a new servlet ....
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 : > > > > Settings > > > SettingsServlet > > > rootFile > c:\testJSP\init.conf > > > -2147483646 > > > > Settings > /servlet/Settings > > > > thks a lot for your answer > > David > a french tomcat beginner
add a new servlet ....
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 : Settings SettingsServlet rootFile c:\testJSP\init.conf -2147483646 Settings /servlet/Settings thks a lot for your answer David a french tomcat beginner