断弯刀

导航

2018年10月26日 #

el表达式

摘要: 不被禁用 <%@page isELIgnored="false" %> El表达式判断是否为空字符串 逻辑运算符 &&或and、||或or、!或not 关系运算符 ==或eq、!=或ne、<或lt、>或gt、<=或le、>=或ge 阅读全文

posted @ 2018-10-26 21:00 断弯刀 阅读(146) 评论(0) 推荐(0) 编辑

html页面跳转

摘要: button 单击提交表单 阅读全文

posted @ 2018-10-26 12:43 断弯刀 阅读(261) 评论(0) 推荐(0) 编辑

servlet路径获取

摘要: 本文章主要讨论以下几种request获取路径的方法: 以一个简单的例子说明: web.xml配置(注意此处的url-pattern项) TestServlet.java文件: 此时请求http://localhost:8080/testweb (url-pattern=/*) 打印出来的值为: 请求 阅读全文

posted @ 2018-10-26 11:28 断弯刀 阅读(1436) 评论(0) 推荐(0) 编辑

servlet中请求转发(forword)与重定向(sendredirect)

摘要: 请求转发和重定向 request.setAttribute("test","hello"); request.getRequestDispatcher("/test.jsp").forword(request,response); response.sendRedirect("test.jsp"); 阅读全文

posted @ 2018-10-26 11:12 断弯刀 阅读(41315) 评论(3) 推荐(9) 编辑

servlet编码问题

摘要: 建议每个servlet都写上 request.setCharacterEncoding("UTF-8") 阅读全文

posted @ 2018-10-26 09:20 断弯刀 阅读(239) 评论(0) 推荐(0) 编辑