首页 > 代码库 > html转jsp乱码问题

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+"/";
%>