package cn.kushe.handler;

import com.jfinal.handler.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by liuyang on 15/4/8.
 */
public class HtmlHandler extends Handler {
    @Override
    public void handle(String s, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, boolean[] booleans) {
        if(s.lastIndexOf(".html") != -1) {
            s = s.substring(0, s.indexOf(".html"));
        }
        nextHandler.handle(s, httpServletRequest, httpServletResponse, booleans);
    }
}

@@ -161,37 +161,8 @@
 %0A * 
-Created by liuyang on 15/4/8.
 %0A */

Update HtmlHandler.java