• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Humour Me

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for all the suggestions, I will let you know how everything goes.
Cheers
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic