淡定从容,宁静致远
全部博文(329)
发布时间:2014-10-29 10:35:07
public String addAjax(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException {//以输出流的形式给前台返回结果,经过前台验证是否保存数据成功resp.setContentType("textml;charset=UTF-8");PrintWriter out = resp.getWriter();if (Isaddsuccess) {out.write("inserUserSuccess.........【阅读全文】
发布时间:2014-10-28 11:27:23
<td class="ta_01" bgColor="#ffffff"> <c:choose> <c:when test="${User.sex eq 0}">男</c:when> <c:when test="${User.sex eq 1}">女</c:when> <c:otherwise>qita</c:otherwise> </c:choose></td> ......【阅读全文】
发布时间:2014-10-26 10:49:37
public String doPost(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException {Users user = new Users();Map map = req.getParameterMap();try {//把前台传过来的数据封装进JavaBeanBeanUtils.populate(user, map);} catch (Exception e) {e.printStackTrace();}if(S.........【阅读全文】