That is my start page. The user selects which item they want and it then takes me to my servlet:
In the servlet, I am populating the user inputs and creating a textbox that I want the user to be able to enter a quantity of the number of orders of each item they would like.
I have the forward working fine, where if they do not select anything, they get forwarded to the error page.
With my order.html page, I only have a button that I am trying to get to show up on the servlet. I want to use the button to calculate the quantities that the user inputs in the textboxes for each item.
My understanding is that, if I use the include, the button from the order.html should show up on the servlet page, and I can then use that button to do my calculations?
Joined: Feb 06, 2011
Odd, it works as expected if I include a .jsp page, but not an .html page but the api says:
include(ServletRequest request, ServletResponse response)
Includes the content of a resource (servlet, JSP page, HTML file) in the response.