Question about JSP Chinese parameter passing: request. setcharecterencoding ("GBK") on the acceptance page; only valid for post submission
If you want to thoroughly handle the problem, you can take the following measures on the acceptance page:
String A = request. getparameter ("A"). getbytes ("iso8859-1", GBK );
Server jump
<JSP: Forward page = ""/>
"/" Indicates the root of the website.
Client jump
<A href =/>
<Meta http-equiv = "refresh" content = "3; url = 2.jsp">
Response. sendredirect ();
Javascript; history. Back ()
Modify Protocol
Response. setheader ("refresh", "3; url = "");
When the client jumps, "/" indicates the root of the server.
A session can be accessed as long as the browser is not closed, and the sessionid is the same (the server assigns the session ID ).
Request can be used with request
<Include file = "??. JSP "/>
What is included at this time ??. Variables in JSP will be accessed first
When a static file contains a. txt file, the variables defined in the. txt file can be directly copied. The static file can contain files in any format.
<JSP: Include flush = "true" page = "Inc. jsp"/> separate execution with only results
<JSP: Param name = "" value = ""/> this parameter must be obtained using the request object after being passed.
JSP comment Ctrl + Shift +/
<JSP: usebean id = "user" class = ""/>
<JSP: setproperty property = "*" name = "user"/>
Eclipse reconstruction Extraction Method