Commit bc80dea9 authored by nsawalakhe's avatar nsawalakhe

Added parameter changes in servlet.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104371 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 791d0480
......@@ -32,6 +32,7 @@ public class ProductDetailServlet extends HttpServlet
String personName = "";
String productName = "";
String uniqueCode = "";
String eventCode = "";
try
{
response.setContentType("application/xml");
......@@ -39,11 +40,12 @@ public class ProductDetailServlet extends HttpServlet
personName = request.getParameter("personName");
productName = request.getParameter("productName");
uniqueCode = request.getParameter("code");
eventCode = request.getParameter("eventCode");
System.out.println("uniqueCode==="+uniqueCode);
System.out.println(" ProductDetailServlet uniqueCode ="+uniqueCode+"=== personName =" + personName + "===== dataSourceName :"+dataSourceName);
context = new InitialContext(appConnectParm.getProperty());
liveEventDetailsRemote = (LiveEventDetailsRemote) context.lookup("ibase/LiveEventDetails/remote");
JSONObject jsonObjData = (JSONObject) liveEventDetailsRemote.getProductDetail(dataSourceName,personName,productName,uniqueCode);
JSONObject jsonObjData = (JSONObject) liveEventDetailsRemote.getProductDetail(dataSourceName,personName,productName,uniqueCode,eventCode);
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