<%@ page import=“java.net.URLEncoder” %>
<%@page contentType=“text/html;charset=UTF-8” language=“java” pageEncoding=“UTF-8”
%>
<%String username=“ZZW”;
//request.setAttribute(“username”,username);%>
<%@ include file=“header.jsp”%>
Hello World!
<%
int count=0;
Object o=application.getAttribute(“count”);
if(o !=null)
{
count=(Integer)o;
}
count++;
application.setAttribute(“count”,count);
request.setAttribute(“count”,count);
String name=“张某人”;
response.sendRedirect("./login.jsp?name=" + URLEncoder.encode(name,“UTF-8”));
%>
<%=
count
%>
<jsp:forward page="<%=“forward.jsp”%>"></jsp:forward>
<jsp:include page="<%=“footer.jsp”%>"/>a