I have an assignment where I have to create a GPA calculator servlet and
deploy it. I've got the calculator done using Forte. It uses applets. Can
anyone give me a quick and dirty how-to, to make this thing into a servlet
and get it up-and running? Thanks.
Roedy Green - 17 Mar 2004 01:37 GMT
>Can
>anyone give me a quick and dirty how-to, to make this thing into a servlet
>and get it up-and running? Thanks.
not quick and dirty. You instead of fielding Button press events , you
get submit messages when the user hits each button. You must set up
an HTML form with every button a submit so that when you hit, it sends
the entire form off to the server.
This way of operating takes us back to the early 70s. Surely we must
put some intelligence back into the client for faster response, and
instantaneous notification of error.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Bryce (Work) - 17 Mar 2004 17:51 GMT
>I have an assignment where I have to create a GPA calculator servlet and
>deploy it. I've got the calculator done using Forte. It uses applets. Can
>anyone give me a quick and dirty how-to, to make this thing into a servlet
>and get it up-and running? Thanks.
GPA = (sum of all grades)/(number of classes)
Servlet class must extend HttpServlet.
--
now with more cowbell
Nigel Wade - 18 Mar 2004 11:02 GMT
>>I have an assignment where I have to create a GPA calculator servlet and
>>deploy it. I've got the calculator done using Forte. It uses applets. Can
[quoted text clipped - 4 lines]
>
> Servlet class must extend HttpServlet.
or GenericServlet - servlets are not restricted to being invoked from HTML
forms using GET/POST methods.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Tony Morris - 18 Mar 2004 11:09 GMT
> or GenericServlet - servlets are not restricted to being invoked from HTML
> forms using GET/POST methods.
No, to "be a servlet", you must implement the javax.servlet.Servlet
interface.

Signature
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)