Coding Help
From: infiniteLoop (jsilvey_at_usa-800.com)
Date: 11/17/04
- Next message: Mike B: "Re: App starts but breaks with reboot"
- Previous message: FU: "Re: Java debugger"
- Next in thread: kaeli: "Re: Coding Help"
- Reply: kaeli: "Re: Coding Help"
- Reply: Hal Rosser: "Re: Coding Help"
- Reply: Chris Smith: "Re: Coding Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 17 Nov 2004 13:14:12 -0500
I am in an Into to Java class and this is my last week. Up until now, I
have been able to keep up to some degree by using the code in my book and
altering it. However, for my final project, I have to do something that I
am unable to locate any similar code for in the book...any help would be
appreciated. Up to this point, the java assignments have only been writing
Java applications in TextPad and running them. I have not even had any
classes in HTML coding yet, I have had one class in QBasic and am
comfortable with procedural programming, and one class in SQL. This is my
first OOP class and I am really struggling trying to move from the the
concept of procedural code to objects.
I am not wanting someone to write the code for me. I just would like some
directions of what I need to do...like write an applet for something then
a class for something else....whatever it is.
Problem:
Write a Java servlet, HTML.Bank.java, that creates a HTML form that
contains: A text box for entering an amount, a text field that displays a
formatted balance, and three buttons ("Deposit" to add the amount to the
balance, "Withdraw" to subtract the amount from the balance, and "Balance"
to display the balance) Use an instance variable for the balance. If no
amount is entered in the text box or if it is a zero or negative number,
output a simple HTML page that displays an error message. Also, be sure
that an amount was entered before converting the string variable for
amount to a double.
I have to be able to run this on my Tomcat server with my web browser. I
have no idea where to even start.
- Next message: Mike B: "Re: App starts but breaks with reboot"
- Previous message: FU: "Re: Java debugger"
- Next in thread: kaeli: "Re: Coding Help"
- Reply: kaeli: "Re: Coding Help"
- Reply: Hal Rosser: "Re: Coding Help"
- Reply: Chris Smith: "Re: Coding Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]