Commit 06d37555 authored by chavanp's avatar chavanp

change templates name and path.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106645 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2ff4f70f
......@@ -28,11 +28,11 @@
System.out.println("objName ["+objName+"]");
if("gstr".equalsIgnoreCase(objName))
{
String filePath = CommonConstants.JBOSSHOME+File.separator+"Download"+File.separator+"Template"+File.separator+"GST_Sales_Template.xls";
String filePath = CommonConstants.JBOSSHOME+File.separator+"DOWNLOAD"+File.separator+"template"+File.separator+"GSTR1_Template.xls";
System.out.println("filepath in jsp file is........." + filePath);
response.setContentType("application/excel");
System.out.println("file name is........." );
String fileName = "GST_Sales_Template.xls";
String fileName = "GSTR1_Template.xls";
response.setHeader("Content-Disposition","attachment; fileName=\"" + fileName + "\"");
java.io.FileInputStream fileInputStream=new java.io.FileInputStream(filePath);
HSSFWorkbook workBook = new HSSFWorkbook(fileInputStream);
......@@ -42,11 +42,11 @@
}
else
{
String filePath = CommonConstants.JBOSSHOME+File.separator+"Download"+File.separator+"Template"+File.separator+"GST_Purchase_Template.xls";
String filePath = CommonConstants.JBOSSHOME+File.separator+"Download"+File.separator+"Template"+File.separator+"GSTR2_Template.xls";
System.out.println("filepath in jsp file is........." + filePath);
response.setContentType("application/excel");
System.out.println("file name is........." );
String fileName = "GST_Purchase_Template.xls";
String fileName = "GSTR2_Template.xls";
response.setHeader("Content-Disposition","attachment; fileName=\"" + fileName + "\"");
java.io.FileInputStream fileInputStream=new java.io.FileInputStream(filePath);
HSSFWorkbook workBook = new HSSFWorkbook(fileInputStream);
......
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