my dog learned polymorphism*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "real life use of servlets" Watch "real life use of servlets" New topic
Author

real life use of servlets

manish suba
Greenhorn

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

Joined: Jan 30, 2000
Posts: 3222
    
    5
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
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
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.
Bill

------------------
author of:


Java Resources at www.wbrogden.com
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
Bill,
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?
John


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
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: real life use of servlets
 
Similar Threads
server side processing error
a jsp design question...
Downloading HTML page
WA #1.....word association
Un-downloadable Applets