Today, when I used the jstl tag library in JSP, I encountered a very disgusting problem. I remember when I took this course at school a few years ago, I have never encountered this kind of problem. It's really disgusting to see it now.
Generally,
1. Configure JDK 1. Download JDK and decompress the package. Assume D: \ jdk6. Make sure that the bin directory is in this directory, the following java_home directory is D: \ jdk6. 2. configure system variables (1) Right-click my computer ",
One build result JSP
The build result JSP is designed to present the result of the build loop of the cruisecontrol. The left side of the page is about whether or not cruisecontrol is building your project, and the link to the previous build is
Last week, the leader told me to deploy a JSP project. Since I have never been in touch with JSP, I immediately found some documents on the Internet about how to deploy the jsp project in Apache Tomcat 5.5. In fact, this is not difficult, but it is
FusionCharts Free: http://www.fusioncharts.com/goodies/fusioncharts-free/
Next, introduce js in the jsp page.
Copy codeThe Code is as follows:
Then writeCopy codeThe Code is as follows:
The parameters in the second line are as follows: the SWF
A java code cannot appear because of jsp code specifications. All have the jsp custom tag technology.
Therefore, jsp's custom tag technology is to remove the java code in jsp. At the same time, encapsulation of the tag's personal feeling is also a
Json is easy to understand and fast to transmit. And can be well integrated with javascript.
Without adding jar, jsp paging can be well completed.
The following describes paging instances:
Effect: jsp + servlet Technology
First: Write A javaBean
This section describes the ServletContext and ServletConfig interfaces. Through these two interfaces, we can. set some parameters in xml, such as the database address and user name and password, to be used by Servlet, so that the Servlet does not
Document directory
HttpServletRequest
HttpServletResponse
Sample program
HttpServletLet's first review the class structure diagram mentioned in the previous section:
As you can see, HttpServlet inherits GenericServlet, but it is also an
JSP requires two "encodings". pageEncoding is used in the first stage, UTF-8 to UTF-8 is used in the second stage, and the third stage is the webpage from Tomcat, with contentType.
Differences between the pageEncoding and contentType attributes on
The jsp code is as follows::
Copy codeThe Code is as follows: documentation
company news
Copy codeThe Code is as follows: function wdQuery (){Var keywords = document. getElementById ("i-0-keywords"). value;Var loginName = document.
Jsp expressions:
Copy codeThe Code is as follows:
For (int I = 1; I %>
For (int j = 1; j %>
If (j %> * = } Else
%>
}
%>
}
%>
Javascript:Copy codeThe Code is as follows: 99 multiplication table
After a long time, I forgot the basics. Let's take a look at it today. Hehah... learn new things with a warm understanding !!!
1. RequestDispatcher. forward ()-forwardIs used on the server. When forward () is used, the Servlet engine transmits the
When each JSP page is accessed for the first time, the WEB Container will send the request to the JSP Engine (a Java program) for processing. The JSP Engine first translates JSP into a _ jspServlet (essentially a servlet) and calls it according to
First, you need to write a hyperlink somewhere on your login page:
Copy codeThe Code is as follows: exit
Link it to the exit. jsp page, and then create a new exit. jsp page and write the following code in its body:Copy codeThe Code is as follows:
Jsp + ajax implementation is refreshing. When you move the mouse away from the text box, the user name is verified. The operation is as follows: Create an input page named input. jsp,
Copy codeThe Code is as follows:
jsp + ajax implementation
10:35:49 org. apache. tomcat. util. http. Parameters processParameters
Warning Parameters: Character decoding failed. parameter 'id' with value' % u8BA2 % u5355 'has been ignored. note that the name and value quoted here may have upted due to the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service