1 . Read about the NumberFormat Class and it's subclasses
it has a "parse(String str)" which returns a number.
2. As you are accepting the numbers from a Form ,
get those parameters in the GET / POST method and send in a new form in
the response.
Hope it helps,
Yogesh
> -----Original Message-----
> From: RAVIKUMAR CHENGALVALA [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, March 31, 2000 7:08 PM
> To: [EMAIL PROTECTED]
> Subject: SERVLET QUESTIONS(PL HELP)
>
> 1.
> PROBLEM DESCRIPTION:
> FORM INPUT:TWO NUMBERS THROUGH TEXT BOXES IN THE FORM AND AN ADD BUTTON
> SERVLET:ONCE ADD BUTON IS CLICKED SERVLET MUST ADD THE TWO NUMBERS(WHCH
> ARE IN STRING FORMAT) AND GIVE THE OUTPUT THROUGH ANOTHER HTML FORM.
> CLAR REQUIRED:
> a) How to convert the numbers which are in string format to number format
> and then do the addition
> b)How to get the output in another HTML form.
>
> --
> RAVIKUMAR CHENGALVALA
> [EMAIL PROTECTED] - email
> (858) 860-6400 x7011 - voicemail/fax
>
>
>
> __________________________________________________
> FREE voicemail, email, and fax...all in one place.
> Sign Up Now! http://www.onebox.com
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html