JSP、EL表达式 ##
* Servlet/JSP 是两种动态的WEB资源的两种技术。
* 使用Servlet生成HTML的页面
response.getWriter("<form action='' method='post'>");
response.getWriter("<input type='text' name='username'>");
* JSP简介
* java server pages java服务器端的网页们,是在服务器端执行。
* JSP不仅可以写HTML+java代码+JSP自己的代码
* JSP的运行原理(*****):JSP -- 翻译成Servlet -- 编译 -- 访问
* JSP的脚本元素(JSP的页面可以编写java代码)
<%! %> :定义类、定义变量、定义方法(不常用) 成员变量。
<%= %> :输出语句(输出到页面,不能有分号)
<% %> :定义变量、语句
* EL快速入门
* 获取域对象中的内容 request.setAttribute("xx","yy");
${xx}
jsp
*9大内置对象
* request ,response,session,application,
* pageContext,page,out,exception
* ServletConfig config
* jsp本质就 servlet
* 三大指令 page include taglib
* pageContext
* 可以拿到其他八大jsp的内置对象
el
el11大内置对象
*pageScope,requestScope,sessionScope,applicationScope
* header, headerValues
* param , paramValues
* cookie
* initParam
* pageContext
* ${pageContext.request.contextPath}
* request.getContextPath()