Commit f953ea7d authored by steurwadkar's avatar steurwadkar

F17ABAS001 GST API integration wizard source code commit

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@172143 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1aa978e0
...@@ -106,7 +106,7 @@ public class GSTDataSubmitWizServlet extends HttpServlet ...@@ -106,7 +106,7 @@ public class GSTDataSubmitWizServlet extends HttpServlet
{ {
boolean isWorkbook = retObj instanceof Workbook; boolean isWorkbook = retObj instanceof Workbook;
System.out.println("isWorkbook : "+ isWorkbook); System.out.println("isWorkbook : "+ isWorkbook);
request.getServletContext().setAttribute("GSTR_OFFLINE_FILE:"+siteCode+":"+prdCode+":"+recType+":"+random,"DONE"); request.getSession().setAttribute("GSTR_OFFLINE_FILE:"+siteCode+":"+prdCode+":"+recType+":"+random,"DONE");
if(retObj instanceof String) if(retObj instanceof String)
{ {
...@@ -164,13 +164,14 @@ public class GSTDataSubmitWizServlet extends HttpServlet ...@@ -164,13 +164,14 @@ public class GSTDataSubmitWizServlet extends HttpServlet
{ {
String status = ""; String status = "";
String key = request.getParameter("key"); String key = request.getParameter("key");
System.out.println("to check status key["+key+"]");
do do
{ {
status = (String) (request.getServletContext().getAttribute(key) == null ? "" : request.getServletContext().getAttribute(key)); status = (String) (request.getSession().getAttribute(key) == null ? "" : request.getSession().getAttribute(key));
} }
while(!"DONE".equalsIgnoreCase(status)); while(!"DONE".equalsIgnoreCase(status));
request.getServletContext().removeAttribute(key); request.getSession().removeAttribute(key);
response.setContentType("text/plain"); response.setContentType("text/plain");
......
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