html转jsp乱码问题

先由html后缀转为jsp后缀。然后添加

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

你可能感兴趣的:(html)