<jsp:useBean id="" class="" scope=""/><jsp:setProperty name="" value=""/><jsp:getProperty name="" value=""/><jsp:include page="url" flush="true"/>
void session.setAttribute("","");
Object session.getAttribute("");
response.setHeader("","");
response.setCharacterEncoding("gb18030");
String request.getParameter();
String request.getParameterValues();
request.setCharacterEncoding("gb18030");
1.<%@ taglib prefix="s" uri="/struts-tags"%>
2.<s:form name="" action="" namespace="">
<s:textfield name="" label="name"/>
<s:password name="" label="pass"/>
<s:textarea name="" label="advice"/>
<s:submit name="" label="submit"/>
</s:form>
3.<s:action name...
session
session.setAttribute("name","name");
Object session.getAttribute("name");
response
response.setCharacterEncoding("gb18030");
response.setHeader("refresh","2;url=123.html");
response.sendRedirect("123.html");
request
request.setCharacterEncoding("gb18030");
String requet.getParam...
Servlet的生存周期
三个过程
1.init
2.service
3.destory
class CheckString{
public CheckString(Object object,String str){
if(Integer instanceof object){
System.out.println("The value is"+object.getValue);
}
else if(object.equals(str)){
System.out.println("The value ...
session.setAttribute("name","郑州标牌厂家");
session.setAttribute("keywords","郑州路牌厂家");
session.setAttribute("keywords2","郑州停车场设施");
session.setAttribute("keywords3","国通标牌");
session.invalidate();
<!-- web的session -->
request.setCharacterEncoding("gb18030");
String name = request.getParameter("jingfei");
response.setHeader("refresh","3");
response.sendRedirect("h.html");
response.setCharacterEncoding("gb18030");
response.setHeader("refresh","2;url=login.aspx");
session.setAttribute("","");
session.invalidate();
session.removeAttribute("");
Object session.getAttribute("");
<%@ page pageEncoding="gb18030"%>
<%@ page contextType=""%>
<%@ page language=""%>
<%@ page import=""%>
<%@ taglib prefix="" uri=""%><%@ include file=""%><jsp:include page="" flush="true"/>
<jsp:forward page=""/>
<jsp:useBean id="" scope=""/>