0

Hi,

I am having trouble debugging this code.Please be kind enough to have a look.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bogus Order Calculate</title>
</head>
<body>
<H1>Bogus Order Calculate</H1>
You ordered these items:
<form action="FinalizeOrder.jsp" METHOD="POST">
<%
if("Dictionary".equalsIgnoreCase(request.getParameter("book")))
{
%><input type="hidden" name="book" value="10.00">
	a Book<BR><%
	
}
if("Coffeecake".equalsIgnoreCase(request.getParameter("food")))
{
%><input type="hidden" name="food" value="2.00">
	some Food<BR><%
	}
if("Coffee".equalsIgnoreCase(request.getParameter("drink")))
{
%><input type="hidden" name="drink" value="1.00">
	a Drink<BR><%
	}
%>
<BR><BR>
<input type="submit" value="Finalize Order">
</form>
</body>
</html>
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by jsp_novice
0

and what problem are you having? since we don't know what you are passing to this jsp page, how do you want us to check if it works or not?

0

and what problem are you having? since we don't know what you are passing to this jsp page, how do you want us to check if it works or not?

sorry here is my program sending arguments.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Insert title here</title>
</head>
<body>
<H3>Bogus company.Simple Old fashioned Order Form</H3>
<BR>
<form action="BogusOrderCalculate.jsp" METHOD="POST"> Please select what you want:
<BR><BR>
Dictionary 
<input type="checkbox" name="book" value="Dictionary">
<BR>
Coffee Cake
<input type="checkbox" name="book" value="Coffeecake">
<BR>
Coffee
<input type="checkbox" name="book" value="Coffee">
<BR>
<BR>
<input type="submit" value="Submit">
</form>

</body>
</html>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.