Posted by Clac7724 on Thursday, April 1, 2010 at 12:54pm.
Below is the following jsp code for a homework assignment im working on. Im allow four input text fields in which a customer can enter the amount of each fruit they want to buy, a submit button, and a reset button. After a customer placed an order, a page should be generated displaying the order information, including the fruit type, amount to buy, subtotal charge for each type of fruit, and total charge.
<H1> Welcome to FarmersMarket</H1>
<% String app=request.getParameter("apple");
Here is your order:<br>
Apple: <%= num%> LB and Subtotal: $<%= num*1%><br>
Banana: <%= num2%> LB and Subtotal: $<%= num2*2%><br>
Grape: <%= num3%> LB and Subtotal: $<%= num3*3%><br>
Orange: <%= num4%> LB and Subtotal: $<%= num4*4%><br>
Total Due: $<%= 1*num+ 2*num2+ num3*3+ num4*4%>
<form action=order.jsp method=post>
Apple <input type=text name=apple>[$1]<br>
Banana <input type=text name=banana>[$2]<br>
Grape <input type=text name=grape>[$3]<br>
Orange <input type=text name=orange>[$4]<br>
- Web application development JSP - Clac7724, Thursday, April 1, 2010 at 12:56pm
Im not sure what wrong but i am not able to get it to run. I m getting errors in this part of the code:
- Web application development JSP - Jack, Thursday, April 1, 2010 at 4:06pm
I would suggest that you go to a programming forum and ask for assistance there.
I'm sure you will have more luck. Considering most helpers here are not proficient in programming.
Answer this Question
Western experience - All of the following are late-twentieth century ...
IT - Can someone help me with this? Design an application or site that presents ...
jsp - can you modify an attribute of the application object after it has been ...
Information systems - Create a table in Microsoft® Word or Excel that lists the ...
management of Information Systems - Create a table that list the strengths and ...
English - I know that in a sentence of three or more words or phrases we need ...
math - describe an application for the use of ratios or portions. And describe ...
Planning - What is the difference between Web 1.0 and Web 2.0? Web 1.0 is about ...
Web Design and Development - Social media is a good method for promoting a ...
Math - There are 3 spider webs. The 1st web is twice as large as the second web...