Have no clue what I'm doing

Hi. I just started using Java and JSP. I'm taking a class at school and am struggling badly. I need help on two assignments.
One:
Objective: This assignment uses JSP directives
Description: Create an HTML form name "SimpleInterest.html" that allows the user to input a starting balance, interest rate, and number of years. It should call "SimpleInterest.jsp" which calculates an ending balance based on the input. - done with this part
In the JSP include a header name "header.jsp" that sates your name and a fotter name "footer.jsp" that sates the current date and version.
Use a JSP declaration to declare a method named "calcSimple()" that takes the starting balance, the interest rate, and the number of years, calculates the new balance, and returns it.
Compound Interest Future Value
FV = PV * (1+i)^N
PV=present value
FV=future value (maturity value)
i=interest rate in percent per period
N=number of periods
The JSP should return an HTML page stating the input parameters and the result.
Two
Objective: Design a JSP that gather information about the request and saves it in a log file.
Description: Create a JSP name log.jsp that reports the following data to a log file: visitor number, user-agent, remote host name, and remote address. Name the log file "access.log". Each time a user visits the JSP write the above data to the file. In the JSP create a private method named "writeLog()" that takes a String containing the log data, and then closes the file. Call this method from within the JSP.
Please help!! My instructor is impossible to get a hold of since he works at a different college. Thank you.

Can you write Java at all?
If so, I'd suggest that you forget about JSP and start by writing an object that can calculate simple interest. Run and test it on the command line until you're sure that it's 100% perfect. See if you can write information gathered from the command line and write it to your access log in a separate object.
Once you have that, tackle the JSP piece. Get a book or a tutorial to learn how to write JSPs. I'd recommend Hans Bergsten's JSP book from O'Reilly.
You'll need a servlet/JSP engine to be able to run your JSPs. Download Tomcat from Jakarta - it's free and very capable:
http://jakarta.apache.org/tomcat
I'd recommend that you download version 4.1.30. It's the stable production version.
Computer science is all about "divide and conquer". Start dividing if you hope to conquer this assignment. - MOD

Similar Messages

Maybe you are looking for