Commit 843aa46b authored by sbade's avatar sbade

updated servlets


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97781 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d218a3d3
......@@ -34,12 +34,13 @@ public class SalesInventoryBrandWiseServlet extends HttpServlet
response.setContentType("application/xml");
dataSourceName = request.getParameter("dataSourceName");
month = (request.getParameter("month"));
/*urlStr = (request.getParameter("P1"));
urlStr = request.getParameter("P1");
String[] splitArr = urlStr.trim().split("\\s+");
System.out.println(" month======" + month);
System.out.println(" brand======" + splitArr[1]);
brandName = splitArr[1];*/
brandName = (request.getParameter("CELL_VAL"));
brandName = splitArr[1];
//brandName = (request.getParameter("brand"));
System.out.println(" brandName in servlet ===" + brandName);
context = new InitialContext(appConnectParm.getProperty());
salesInventoryRemote = (SalesInventoryRemote) context.lookup("ibase/SalesInventory/remote");
//Here invoke EJB define method
......
......@@ -29,20 +29,20 @@ public class SalesInventoryDivWiseServlet extends HttpServlet
AppConnectParm appConnectParm = new AppConnectParm();
String dataSourceName = "";
String month = "";
String from_mns = "";
String to_mns = "";
String nomns = "";
try
{
response.setContentType("application/xml");
dataSourceName = request.getParameter("dataSourceName");
month = (request.getParameter("month"));
from_mns = (request.getParameter("from_mns"));
to_mns = (request.getParameter("to_mns"));
System.out.println(" month======" + month+"from_mns==="+from_mns+"to_mns==="+to_mns);
nomns = (request.getParameter("nomns"));
System.out.println(" month======" + month+"nomns==="+nomns);
context = new InitialContext(appConnectParm.getProperty());
salesInventoryRemote = (SalesInventoryRemote) context.lookup("ibase/SalesInventory/remote");
//Here invoke EJB define method
JSONObject jsonObjData = (JSONObject)salesInventoryRemote.getSalesInventoryDivWise(dataSourceName, month,from_mns,to_mns);
JSONObject jsonObjData = (JSONObject)salesInventoryRemote.getSalesInventoryDivWise(dataSourceName, month,nomns);
OutputStream outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment