@Gino1010
Thanks for using Aspose APIs.
We have tested your issue with the following sample code with your provided steps and it worked fine.
Please download the complete Sample JSP GridWeb Project and run it with Tomcat Server and perform your steps and you will find, it is working fine.
If you still find an issue, please provide us your own project which could help us replicate your issue.
Here is the code of the Test.jsp file.
JSP
<%@page language="java" contentType="text/html; charset=UTF-8" import="com.aspose.gridweb.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<script type="text/javascript" language="javascript" src="grid/acw_client/acwmain.js"></script>
<script type="text/javascript" language="javascript" src="grid/acw_client/lang_en.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<title>Aspose.Cells.GridWeb for Java - Sample JSP Page</title>
<%
//Print GridWeb version on Console
System.out.println("Aspose.Cells.GridWeb for Java Version: " + GridWebBean.getVersion());
System.out.println(path);
System.out.println(basePath);
ExtPage BeanManager=ExtPage.getInstance();
GridWebBean gridweb=BeanManager.getBean(request);
out.println(gridweb.getHTMLHead());
%>
</head>
<body>
<%
gridweb.setReqRes(request, response);
gridweb.setWidth(Unit.Pixel(900));
gridweb.setHeight(Unit.Pixel(400));
String filePath = application.getRealPath("file/sampleExcel.xlsx");
gridweb.importExcelFile(filePath);
gridweb.setEnableAJAX(true);
gridweb.prepareRender();
out.print(gridweb.getHTMLBody());
%>
</body>
</html>