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
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
Author and all-around good cowpoke
Joined: Mar 22, 2000
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