基于javaweb+jsp的二手物品交易管理系统
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可修改
开发工具:eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
`id`,`username`,`password`,`real_name`,`user_sex`,`user_phone`,`user_text`,`user_type` INSERT INTO `t_user` `id`, `username`, `password`, `real_name`, `user_sex`, `user_phone`, `user_text`, `user_type`
public void setWupingText(String wupingText) {
this.wupingText = wupingText;
}
}
package com.demo.util;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class LoginInterceptor implements HandlerInterceptor {
//@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object o) throws Exception {
HttpSession session = request.getSession();
//移除错误提示
alert("价格不能为空");
return false;
}
if (document.getElementById("add-wupingMiaosu").value.trim().length == 0) {
alert("描述不能为空");
return false;
}
if (document.getElementById("add-wupingRen").value.trim().length == 0) {
alert("联系人不能为空");
return false;
}
if (document.getElementById("add-wupingPhone").value.trim().length == 0) {
alert("联系方式不能为空");
return false;
}
return true;
str = new String(str.getBytes("GB2312"), "UTF-8");
}
if (isMessyCode(str)) {
str = new String(str.getBytes("GBK"), "UTF-8");
}
if (isMessyCode(str)) {
str = new String(str.getBytes("UTF-8"), "ISO-8859-1");
}
if (isMessyCode(str)) {
str = new String(str.getBytes("GB2312"), "ISO-8859-1");
}
if (isMessyCode(str)) {
str = new String(str.getBytes("GBK"), "ISO-8859-1");
}
if (isMessyCode(str)) {
str = new String(str.getBytes("UTF-8"), "GB2312");
}



