File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

real life use of servlets

 
manish suba
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in which types of projecte are servlets used
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
John Wetherbie
Rancher
Posts: 1449
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic