最赞回答 / 不偏不易
1.首先修改page指令中编码<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>这样做目的:设定该jsp页面的编码。并确认自己的浏览器用UTF-8,eclipse中浏览器界面右键编码2、如果在表单中输入中文时出现乱码,用request.setCharacterEncoding("utf-8")可处理之。3.如果在<a href="request.jsp?usernam...
2016-04-15
最新回答 / qq_慕丝7084769
2021-04-01 22:52:33.269 ERROR 16076 --- [nio-8090-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested ...
2016-04-14
最赞回答 / snip
跳转分2种:重定向方法 sendRedirect()页面跳转了之后地址栏有变化转发方法 forward() 页面跳转了之后地址栏没有变化你说的跳转应该是:转发方法,自己好好看看重定向和转发的区别吧
2016-04-14