| Line 32... |
Line 32... |
| 32 |
public class BulkBillingServlet extends HttpServlet {
|
32 |
public class BulkBillingServlet extends HttpServlet {
|
| 33 |
protected void doPost(HttpServletRequest request, HttpServletResponse
|
33 |
protected void doPost(HttpServletRequest request, HttpServletResponse
|
| 34 |
response) throws ServletException, IOException {
|
34 |
response) throws ServletException, IOException {
|
| 35 |
|
35 |
|
| 36 |
|
36 |
|
| 37 |
System.out.println("LogisticsTransactionId"+request.getAttribute("logisticsTransactionId"));
|
37 |
System.out.println("LogisticsTransactionId"+request.getParameter("logisticsTransactionId"));
|
| 38 |
System.out.println("PackageDimensions"+request.getAttribute("packageDimensions"));
|
38 |
System.out.println("PackageDimensions"+request.getParameter("packageDimensions"));
|
| 39 |
|
39 |
|
| 40 |
FileItem uploadItem = getFileItem(request);
|
40 |
FileItem uploadItem = getFileItem(request);
|
| 41 |
if (uploadItem == null) {
|
41 |
if (uploadItem == null) {
|
| 42 |
response.getWriter().write("NO-SCRIPT-DATA");
|
42 |
response.getWriter().write("NO-SCRIPT-DATA");
|
| 43 |
return;
|
43 |
return;
|
| Line 54... |
Line 54... |
| 54 |
uploadItem.write(file);
|
54 |
uploadItem.write(file);
|
| 55 |
} catch (Exception e) {
|
55 |
} catch (Exception e) {
|
| 56 |
// TODO Auto-generated catch block
|
56 |
// TODO Auto-generated catch block
|
| 57 |
e.printStackTrace();
|
57 |
e.printStackTrace();
|
| 58 |
}
|
58 |
}
|
| 59 |
ProcessBulkBilling processBulkBilling = new ProcessBulkBilling(fileName,request.getAttribute("logisticsTransactionId")+"",request.getAttribute("packageDimensions")+"");
|
59 |
ProcessBulkBilling processBulkBilling = new ProcessBulkBilling(fileName,request.getParameter("logisticsTransactionId")+"",request.getParameter("packageDimensions")+"");
|
| 60 |
String result = "";
|
60 |
String result = "";
|
| 61 |
if (processBulkBilling.processReport()){
|
61 |
if (processBulkBilling.processReport()){
|
| 62 |
result = processBulkBilling.checkBillingDetails();
|
62 |
result = processBulkBilling.checkBillingDetails();
|
| 63 |
}
|
63 |
}
|
| 64 |
else{
|
64 |
else{
|