• Post Reply Bookmark Topic Watch Topic
  • New Topic

Overwhelmed by Tomcat

 
Marco Pantani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys. I recently decided to learn a little bit of Servlet and JSP programming (maybe to pass SCWCD, but not necessarily). The problem with JSDK in-built server is that it's too simple - no jsp, no servlet chaining. So, I decided to use Tomcat 4.0. After installing it and reading manual on how to develop and deploy web applications using Servlets and Jsp with Tomcat,I was just overwhelmed. They ask to use some CVS system that I have no idea of; I also need to create some configuration file (web.xml) but I have no idea of XML. There are lots of advanced web development things that are required to just simply create and test your web pages using Servlets. Wooooooooof !
But I need just to learn basic servlet technology, I don't want all that advanced staff. Could someone recommend any simpler server than Tomcat to use ?? Thanks in advance.
 
Pat Wallwork
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat really is a great place to start actually. For simple servlets and jsp you can just use the default root folder.
Put all jsp's, html, images etc. in your ROOT folder. Servlets go in the ROOT/WEB-INF/classes folder.
As long as your classpaths are set right you can access your jsp, html, etc. files at the default setting of
http://localhost:8080/yourfile.jsp
and your servlets at
http://localhost:8080/servlet/yourServlet
Is this not working for you?
-Pat
[ September 28, 2002: Message edited by: Pat Wallwork ]
 
Marco Pantani
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pat for your advice.
I'll try it when I go offline cause when online I can't start Tomcat (2 web servers try to share the same port). I hope this will work.
Anyway, thanks a lot.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do NOT have to mess with CVS at all unless you are working with the development releases. The precompiled packages should work right out of the box - perhaps with defining an environment variable or two.
The included examples are excellent and the web.xml for the examples exercises many of the functions and has helpful comments built in.
Bill
 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
Sorry to hear u r having a bad time with Tomcat.
U can change the port in $CATALINA_HOME/conf/server.xml , just as long as it doesn't conflict with another port.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!