"Click to view the original"
JSP (Java Server page) Java service-side web page, is a Dynamic Web page technology, which and. NET, the ASP functions are the same. JSP is a set of standards set by sun, and is one of the 13 specifications of Java EE.
The previous system has been equipped with JSP's operating environment, then Google came to some information, today, the process of their own record down.
1. Development environment Configuration
1.1 Download Java SDK and Tomcat
Javase SDK download
Java class used, in addition to the above several, there are several left.
Two filter classes, one for filtering characters, and one for filtering users who are not logged in.
1. Introduction
Include action directives can dynamically include a file in a JSP page, the contents of which can be static files or dynamic scripts, and the JSP engine can dynamically compile and update the included dynamic files when they are
CKEditor Environment, please refer to the introduction of CKEditor3.6 tutorial in JSPJSP pages submit form data using Rich Text control CKEditor
JSP uses CKEditor and Ckfinder to implement rich text and upload functions
Find the Ckeditor.js in the
1. The client makes a request to the server through a browser that contains the path to the requested resource, so that when the server receives the request, it can know the requested resource.
2. The server loads the requested JSP file according to
1. Requestdispatcher.forward ()is on the server side, when using forward (), the Servlet engine passes HTTP requests from the current servlet orjsp to another servlet,jsp or normal HTML file, which is also where your form is submitted to a.jsp, The
This article from: Click to open the link
Accustomed to the JS frame ext,jquery and so on. Suddenly to use JSP+CSS to achieve the effect of the label page, suddenly do not adapt to the internet so a bit to find a good way to achieve, now quote:
FCKeditor control please go to the official website to download http://www.fckeditor.net, this example is mainly used to Fckeditor_2.6.3.zip, Fckeditor-java-demo-2.4.1.zip, Some of the content inside the fckeditor-java-2.4.1-bin.zip, readers can
One, Page object
The Page object represents the JSP itself, or rather, it represents the JSP-translated servlet, which can invoke the method defined by the Servlet class.
Two, config objectThe Config object holds some of the servlet's initial data
Turn from: http://cantellow.javaeye.com/blog/372941
About the difference between the two I don't have to say, a lot of search, probably is:
Redirect is client jump, forwarding is server-side jump
The following statements are invoked in the servlet
Originally intended to continue to write thymeleaf aspects of the content, a look at the content of a lot of, maybe a week can not finish, and from the controller to get value and other content can also be from the online Baidu, so wrote the
"ErrorPage specifies what the actual response page of the current page error is, where"/"represents the root of the current web App "When responding to error.jsp, the JSP engine uses the way the request is forwardedISERRORPAGE Specifies whether the
1. Introduction of JSP InstructionJSP directives (Directive) are designed for the JSP engine, and they do not directly produce any visible output, but simply tell the engine how to handle the rest of the JSP page.Basic syntax format for JSP
JSP and upload encapsulationI. Introduction to JSP1.jsp is the Java Server Pages enables dynamic generation of HTML code in a page using Java as a scripting language2.jsp First and HTML differences, HTML can be placed directly in the browser to
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.