First school JSP experience
Author: Raymond [hhzqq@21cn.com] test environment for jdk1.2.2 jswdk-1.0 winnt4.0 Chinese version.
1. Java is sensitive, people who have used other programming languages are the easiest to commit this mistake, especially when I just came. It is because it is because of this.
2. Java's calling process is to be added parentheses, and it is easier to ignore at the beginning, such as title = Request.getParameter (/ "Title /"). Trim ();
3. The solution to the request.form () and Request.QueryString () in the JSP. The parameters in JSP do not have FORM and QueryString points, all through Request.getParameter (/ "xxxx /"). Although JSP also has a request.getQueryString () method, the test result is Test.jsp? Id = 1 & Page = 20 Get ID = 1 & Page = 20. If the URL and FORM have the same parameter name? Below is a test code: