• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Humour Me

 
Dianna McDonald
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone;
I know this will probably be a really stupid question but you'll have to forgive me. I was wondering if you need to have Tomact in order to use servlets? I know that with JSPs you do, and that JSPs are transformed into servlets but I want to use servlets in a web application and I was just planning on calling the servlets within my HTML page. Is that even possible?:confused
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs are compiled into servlets and then the servlets are executed within a Servlet container. Yes you will need Tomcat.
As to your second question, the answer is yes.
Pho
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dianna,
Yes. Tomcat can be used to serve servlets , jsps and htmls. Place your HelloServlet.class like this.
C:\jakarta-tomcat\webapps\MISApp\WEB-INF\classes\HelloServlet.class
and call from browser http://localhost:8080/MISApp/servlet/HelloServlet
A sample html is :

regds
maha anna
[This message has been edited by maha anna (edited May 15, 2001).]
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strictly you don't need Tomcat. Any servlet container will do. Tomcat is the official reference platform, but there are plenty of others both free and paid-for. Lots of us use Resin, available from http://www.caucho.com/ and many people reckon it's both faster in operation and easier to install and configure than Tomcat.
 
Joe McGuire
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun used to have a web development kit that contained a web server that served servlets and jsps. It's not robust enough for any kind of production environment (it was put out for studying the tutorials). I'm not sure if it's still out there, but I'm sure I have a copy laying around. You could email me for it.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Orion is worth a look as well. It's a pure-Java, complete J2EE server, free for development purposes, and a doddle to set up.
- Peter
 
Dianna McDonald
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all the suggestions, I will let you know how everything goes.
Cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic