0

Jsp Code

<h1>Good one</h1>
<form action = "/PurchaseDetails" method = "post">
        <table id="tab1" align="center" border="0">
        <tr><th>Purchased Details</th></tr>
        <tr><td style="padding-left:50px;"></td><td>Date</td><td   style="padding-left:50px;"></td><td><input type="text" name="uname" id="date" class="calendar"/></td></tr>
        <tr><td style="padding-left:50px;"></td><td>Total Quantity</td><td style="padding-left:50px;"></td><td><input type="text" name="totalquantity" id="totalquantity"/></td></tr>
        <tr><td style="padding-left:50px;"></td><td>Total Weight</td><td style="padding-left:50px;"></td><td><input type="text" name="totalweight" id="totalweight"/></td></tr>
        <tr><td></td><td></td><td><input type="submit" name="btn1" id="btn1" value="Update"/></td><td><input type = "reset" value = "Cancel"/></td></tr>

</table>

i given like this in the Jsp page. When i run this one index page is running. After if i gave the values in and click the submit button means

HTTP Status 404 - /PurchaseDetails

type Status report

message /PurchaseDetails

description The requested resource (/PurchaseDetails) is not available. Apache Tomcat/6.0.14

It will through this error. What can i do? If any one knows means tell me how can i do further My Web.xml code is here: PurchaseDetails PurchaseDetails com.focus.controller.PurchaseDetails PurchaseDetails /PurchaseDetails

Aoryouncellvan
  • 157
  • 3
  • 6
  • 16
  • 2
    You have a servlet (with post) listening in /PurchaseDetails? please add it and the relevant part of the web.xml – Arturo Volpe May 28 '14 at 11:34
  • Do you have a servlet configured for the path "/PurchaseDetails"? The error message means that the POST of the form has arrived ad the tomcat but the tomcat now doesn't know who is responsible for handling this request since it cannot find a suitable configuration – mschenk74 May 28 '14 at 11:34
  • 1
    Can you please post `web.xml` file ? – Rohan May 28 '14 at 11:42
  • PurchaseDetails PurchaseDetails com.focus.controller.PurchaseDetails PurchaseDetails /PurchaseDetails – Aoryouncellvan May 28 '14 at 13:57

0 Answers0