Add <%request.setcharacterencoding ("UTF-8") to the interface adding parameters;%>
Instance code:
login_confirm.jsp
<%@ Page Language="Java"ContentType="text/html; Charset=utf-8"pageencoding="Utf-8"%><%@ taglib Prefix="C"URI="Http://java.sun.com/jsp/jstl/core" %><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head><!--solving the problem of Jsp:param parameter garbled -<%request.setcharacterencoding ("UTF-8");%><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Login Verification Interface</title></Head><Body><c:ifTest= "${param.username==\"123\ "&& param.userpass==\ "123456\"} "><!--Add user information to session -<C:setvar= "username"value= "${param.username}"Scope= "Session"/><Jsp:forwardpage= "login_success.jsp"/></c:if><c:ifTest= "${param.username!=\"123\ "}"><Jsp:forwardpage= "login_failure.jsp"><Jsp:paramname= "Info"value= "User name is incorrect"/></Jsp:forward></c:if><c:ifTest= "${param.userpass!=\"123456\ "}"><Jsp:forwardpage= "login_failure.jsp"><Jsp:paramname= "Info"value= "User password is incorrect"/></Jsp:forward></c:if></Body></HTML>
login_failure.jsp
<%@ Page Language="Java"ContentType="text/html; Charset=utf-8"pageencoding="Utf-8"%><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Login Success Screen</title></Head><Body>Login failed with error message as follows: ${param.info}<DivAlign= "Center"> <ahref= "index.jsp">Re-Login</a></Div></Body></HTML>
<jsp:param> parameter garbled problem