File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes real life use of servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "real life use of servlets" Watch "real life use of servlets" New topic

real life use of servlets

manish suba

Joined: Nov 25, 2000
Posts: 3
in which types of projecte are servlets used
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
In just about every e-commerce solution that involves Java?
I think that your question is extremely general but Servlets solve all the problems that CGI scripts had. CGIs were good in the beginning simply because they were the only way to artificially extend the functionality of a Web server.
Now there is no more need to write new CGIs. Get a Java enabled web server and write Servlets instead.

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
We use servlets to teach on-line courses. My first try (before servlets existsed) used Java applets, JavaScript, Frames, and Perl CGI scripts. Troubleshooting all of the weird problems that students had with different browser versions and firewalls was a real pain.
Now everything is done with servlets, plain HTML and a little JavaScript and there is very little troubleshooting to be done.

author of:
John Wetherbie

Joined: Apr 05, 2000
Posts: 1449
What functions are your online course servlets responsible for? Do they acts a traffic cops (Controllers), handle the generation of dynamic content, other things, all of these, none of these?

The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
In our courseware, servlets do just about everything.
For students, the only plain HTML pages they see are:
Entry to sign up for a course
Entry to course material
The "goodbye" page
Everything else is generated under servlet control. However, don't get the impression that there are a lot of print statements generating the content. What we do is combine presentation templates with content files generated by the course authors. The servlet dynamically generates all of the dynamic links needed so when you click on the "next page" link, the parameters to show the next page are transmitted to the servlet.
There is also a current status display that shows the student's current record for exercises turned in, tests done and resulting course grade.
On the administration side, the instructors get a servlet which lets you control which classes are currently available for signup, authorize students, review/edit student records, etc. - The latest instructor "want list" includes a lot of automatic email generation... programmer's work is never done.
I am also heading more towards using XML to define everything, replacing some script formats that have gotten more unwieldy as functions have been added.
I agree. Here's the link:
subject: real life use of servlets
It's not a secret anymore!