0

I have a jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

</body>
</html>

which i'm trying to render in as Java application running as Spring Boot App deployed on Tomcat. I just see the above text as it is in the browser.

I think the issue is same as mentioned here. But can't understand how it is solved.

Community
  • 1
  • 1
Abhishek Agarwal
  • 846
  • 4
  • 13
  • 34

1 Answers1

1
  1. First you deploy your project in tomcat webapps directory .
  2. add servlet-api.jar file in lib directory or if you are use mavan then ensure that your jar files are downloaded or not.
  3. restart your tomcat server and after hit your jsp page.