上一页 1 2 3 4 5 6 7 ··· 38 下一页
摘要: maven依赖 jstl jstl 1.2jsp中: ${status.count }: ${item.key } if ...choose...when...otherwise 未成年 ... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(631) 评论(0) 推荐(0) 编辑
摘要: servlet代码:request.setAttribute("name", "张思睿");request.setAttribute("person", list);request.setAttribute("person", map);jsp中用EL表达式... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(138) 评论(0) 推荐(0) 编辑
摘要: web容器会把jsp最终转化为servlet类,jsp中的以下标记将进行如下转化::代码出现在方法内:代码直接出现在类内(不在类内方法中):相当于:指令Test tests ... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 会话:HttpSession session = request.getSession();//判断是否为新会话session.isNew();//获取一个已经存在的会话HttpSession session = request.getSession(fal... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 代码://只可以指定绝对路径RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/pages/test.jsp");//可以指定绝对路径或相对路径RequestDi... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 通常情况,如果参数值为中文,用get传递后台直接获取往往会造成乱码,页面类中可以用如下方式解码:String value = new String(request.getParameter("value").getBytes("iso-8859-1"), "... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(925) 评论(0) 推荐(0) 编辑
摘要: 页面类:public void doDownTemplet(HttpServletRequest request, HttpServletResponse response) throws IOException{ response.setConten... 阅读全文
posted @ 2019-01-15 14:06 xuejianbest 阅读(2984) 评论(0) 推荐(0) 编辑
摘要: 结构:web.xml:test index.html test servlet.Controller /pages/test.jsp test_initParam ... 阅读全文
posted @ 2019-01-15 14:05 xuejianbest 阅读(159) 评论(0) 推荐(0) 编辑
摘要: init()service()do...()如doGet() 或 doPost()destroy()其中init()和destroy()每个Servlet只运行一次;而对于每个对此Servlet的请求,容器都会开一个单独的线程,然后运行service();s... 阅读全文
posted @ 2019-01-15 10:31 xuejianbest 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 饼图:myChart.setOption({ series : [ { name: '访问来源', type: 'pie', radius: '55%',//南丁格尔图 r... 阅读全文
posted @ 2019-01-11 11:19 xuejianbest 阅读(486) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 38 下一页