[OT] Re: help with html + servlet
> Ben - I will try your examples. the example says > "Download SimpleServlet.war to your TOMCAT_HOME\webapps" > Should I download this code to my Tomcat5.0\webapps\ROOT > or Tomcat5.0\webapps\ROOT\WEB-INF\classes\ directorie No, to deploy a war file in Tomcat, just place the war file under TOMCAT_HOME\webapps\ and tomcat will deploy it for you. The invoker servlet has been disabled in Tomcat for some time. http://jakarta.apache.org/tomcat/faq/misc.html#evil A lot textbooks are outdated in that respect. It is standard practice to map each servlet explicitly now. Good luck with your project. -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with html + servlet
The assign text book is "Beginning java 2", Ivor Horton, but I was reading one of O'reilly's books about servlets I am also trying to do the same thing using the Oracle 10g IDE but I have the same problem. The thing is in our previous homework I manage to make jsp files find on TOmcat by putting my package on the Tomcat5.0\webapps\ROOT\WEB-INF\classes\ and everything worked great. Wendy - I will try putting the 2 files in one of the example directories Ben - I will try your examples. the example says "Download SimpleServlet.war to your TOMCAT_HOME\webapps" Should I download this code to my Tomcat5.0\webapps\ROOT or Tomcat5.0\webapps\ROOT\WEB-INF\classes\ directories? Thanks Wendy and Ben et all, :-) Néstor Alberto Flórez Torres >>> [EMAIL PROTECTED] 12/6/2004 10:30:07 AM >>> From: "Nestor Florez" <[EMAIL PROTECTED]> > I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I > am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, Make sure your package statement is correct for that path. > I am doing this for a homework and part one is supposed to be simple a HTML file that ask for > your name and the servlet just display the named enter. I am just missing where to put the servlet. > I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access > the servlet by using path/servlet/myservlet. Is this the assigned textbook for your class? That path is indicative of the "Invoker Servlet". You will either need to enable it, which may get you by for this class, or else configure your servlet in web.xml. Last time I checked, the Invoker Servlet was still enabled in the 'examples' webapp. Try dropping your .class file and html page into webapps\examples\ instead and see if it works. [I'm still on 4.1, no idea about 5.0.] -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with html + servlet
From: "Nestor Florez" <[EMAIL PROTECTED]> > I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I > am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, Make sure your package statement is correct for that path. > I am doing this for a homework and part one is supposed to be simple a HTML file that ask for > your name and the servlet just display the named enter. I am just missing where to put the servlet. > I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access > the servlet by using path/servlet/myservlet. Is this the assigned textbook for your class? That path is indicative of the "Invoker Servlet". You will either need to enable it, which may get you by for this class, or else configure your servlet in web.xml. Last time I checked, the Invoker Servlet was still enabled in the 'examples' webapp. Try dropping your .class file and html page into webapps\examples\ instead and see if it works. [I'm still on 4.1, no idea about 5.0.] -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with html + servlet
I've got some example code here: http://simple.souther.us SimpleBean has an example of a form post. SimpleServlet has a mapped bean. They're all war files that you can just drop into your webapps folder and run. On Mon, 2004-12-06 at 12:24, Nestor Florez wrote: > Hello experts, > > I am reading to the documentation, but I do not understand how to make it so > that Tomcat executes a servlet > as the action for an HTML file after the submit button is clicked. > > I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I am putting > my servlet in the > Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, but this does not work. > What Iam I missing > > I am doing this for a homework and part one is supposed to be simple a HTML > file that ask for > your name and the servlet just display the named enter. I am just missing > where to put the servlet. > I was reading a book that said that you put your servlets in the > path/servlets/myservlet, but then you access > the servlet by using path/servlet/myservlet. This obviously different from > Tomcat > > This is probable very basic for you guys, but not for me. > > Appreciate any help - Thanks, > > :-) > > NÃstor Alberto FlÃrez Torres > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help with html + servlet
Hello experts, I am reading to the documentation, but I do not understand how to make it so that Tomcat executes a servlet as the action for an HTML file after the submit button is clicked. I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, but this does not work. What Iam I missing I am doing this for a homework and part one is supposed to be simple a HTML file that ask for your name and the servlet just display the named enter. I am just missing where to put the servlet. I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access the servlet by using path/servlet/myservlet. This obviously different from Tomcat This is probable very basic for you guys, but not for me. Appreciate any help - Thanks, :-) Néstor Alberto Flórez Torres - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]