标记:

<%%>

<%=%> == <%out.println();%>

<%!%> == 成员变量

 

指令:page、taglib、include、

动作:include、forward、useBean、setProperty、getProperty

<jsp:forward page="index.jsp"></jsp:forward>

内嵌对象:out、page、request、response、session(会话,单个用户)、application(整个应用)、exception、config、pageContext

request.setAttribute("aaa", name);

 

1. 请求转发与重定向

请求转发:<jsp:forward page="">

  原请求(地址栏与现实页面不符),存储在request值还在

重定向:response.sendRedirect(url);

  打开新的请求,request的值消失

     session(关闭浏览器或超时才消失)

 posted on 2016-04-13 20:12  要更努力了..  阅读(166)  评论(0)    收藏  举报