先由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转jsp乱码问题
时间: 2024-10-11 12:37:52