Skip to content

ismlsmile/jasper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jasper

一个轻量级的jsp到servlet类的编译器,自制Tomcat的组件之一,完整项目见ServletContainer

Dependency

需要lib中的jalopy.jarlog4j.jar包来格式化生成的java代码,对HttpServlet的编译需要javax.servlet.jar
需要手动配置docRoot和java -cp ...servlet.jar中的依赖包的路径

Usage

ServletParser s = new ServletParser(new File("C:\\Users\\IdeaProjects\\AtomCat\\index.jsp"));//jsp文件路径
try {
	s.parse();//在docRoot下生成index_jsp.java和index_jsp.class
}
catch (Exception e){
    e.printStackTrace();
}

About

a compiler to compile jsp to servlet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages