![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端问题
MiniHurricane
这个作者很懒,什么都没留下…
展开
-
my:解决后台接受前台中文信息乱码的问题
首先:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>并且request.setCharacterEncoding("gb2312");第二:配置 server.xml。<Connector port...转载 2019-10-15 22:36:12 · 123 阅读 · 0 评论 -
前端页面跳页面问题
问题概述:页面跳页面(视图跳视图),浏览器地址已改变,而跳转的页面不显示以下是简略的详细代码/**本问题在ssm项目中遇到,故代码用到的是ssm的规则*/<忘了说了,我遇到这个问题的根本原因是--我将jsp项目改成ssm项目,套用jsp项目的前端,然而ssm实现是严格采用MVC模式,各代码各司其职,不像jsp代码那样可以将实现多功能的代码放一块,故jsp规范不能套用到ssm规范&...原创 2019-06-12 22:58:48 · 946 阅读 · 0 评论 -
My:Invalid character found in the request target. The valid characters are defined in RFC 7230 and R
前端代码报错:HTTP Status 400 – Bad RequestTypeException ReportMessageInvalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986DescriptionThe server ...原创 2019-06-18 23:21:06 · 595 阅读 · 0 评论 -
ssm项目登录
1.概述:1.1 login.jsp 用form提交数据给 login后端控制器1.2 loing后端控制器 通过传参Login(String userName,String password, HttpSession session,HttpServletRequest request) 来获取用户名、密码1.3 当用户存在时,session.setAttribute("USER...原创 2019-06-17 22:54:27 · 651 阅读 · 0 评论 -
form表单提交时,action怎么带多个参数
在提交form表单的时候,action 不填就默认为提交到当前的页面。今天遇到的当前页面是已经带了参数了,比如:www.xxx.com/index.php?id=1,按照action留空的方法来提交,就不能提交到这个带参数的url了,也不能到把表单中的直拼接在uri后面。那怎么办呢,可以用js的方法拼接好在submit<body> <form action="s...转载 2019-08-15 10:33:37 · 6326 阅读 · 0 评论 -
jsp页面中的注释问题
jsp页面中的注释问题 1.其中注释不含EL表达式的样子 --> <!-- --> 2.其中注释含EL表达式的样子 --> <%-- --%> 总结: 1.用<!-- --> 注释了含EL表达式的代码,...原创 2019-08-15 12:26:04 · 611 阅读 · 0 评论 -
Optional int parameter 'star' is present but cannot be translated into a null value due to being dec
详细报错: Optional int parameter 'star' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the correspondi...原创 2019-08-17 17:59:59 · 6502 阅读 · 0 评论 -
javax.el.PropertyNotFoundException: Property 'username' not found on type pers.wsf.multiBlog.pojo.Ar
my:${a.username}获取不到值的问题简略错误信息:messagejavax.el.PropertyNotFoundException: Property 'username' not found on type pers.wsf.multiBlog.pojo.Articleroot causejavax.el.PropertyNotFoundException: P...原创 2019-10-10 17:04:03 · 950 阅读 · 0 评论