How do I convert my existing applets and/or CGI programs to servlets?

Ryan Breidenbach

This is really two different questions.

I'm not really sure how/why you would convert an applet to a servlet. Applets are small applications that run on a client computer, typically with a GUI interface. Servlets process request to a server. So there doesn't seem to be a clear way/reason to convert an applet to a servlet.

CGI scripts and servlets do basically the same job - back end processing on a server. Basically, all you have to do is alter any web pages that post to a CGI script to now post to a corresponding servlet. Then you would simply have the servlet perform the same processing that the CGI script did.

And, as I am sure you are aware, converting from CGI scripts to servlets is a good idea. This should not only increase the performance of your web application, but give all the benedits of programming in Java.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact