My Servlet name is ShowParameters and My Html is ShowParametersPostForm.html. I included the package coreservlets for Show Parameters. How to link the HTML with the servlets. When i run it says that the requested resource is unavailable.
How to link my servlet in following code?
<FORM ACTION="coreservlets.ShowParameters" METHOD="POST">
Item Number: <INPUT TYPE="TEXT" NAME="itemNum"><BR>
Description: <INPUT TYPE="TEXT" NAME="description"><BR>
Price Each: <INPUT TYPE="TEXT" NAME="price" VALUE="$"><BR>
<HR>First Name: <INPUT TYPE="TEXT" NAME="firstName"><BR>
Last Name: <INPUT TYPE="TEXT" NAME="lastName"><BR>
Middle Initial: <INPUT TYPE="TEXT" NAME="initial"><BR><HR>
</FORM>
You have to map your request to Servlet in
<servlet-mapping>tag ofweb.xmlHave a look at this tutorial and you’ll find what you need
and have your action as
<form action="show">