Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2004

Tip: Looking for answers? Try searching our database.

super java newbie question

Thread view: 
John Tasz - 16 Mar 2004 20:14 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.
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)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.