JDBC: Communication interface function 1.mysql driver (JDBC): The driver is placed in the project library or tomcat/lib, MySQL website jdbc includes the JDBC driver and API2.JDBC API: Database access interface 3.jsp and database access 4. Process
What is JDBCIn the Java technology family, the technology that accesses the database is called JDBC, which provides a series of APIs that allow code written in the Java language to connect to the database, add, delete, modify, and query the data
Tool: myeclipse+oracle11g1, first create a new JSP page.2. New entity class User.java in SRC directory3. Create Basedao to link the database4. Create a stored procedure in PL/SQL5, create Userdao implementation query users6. Call on JSP page6, start
Three, El expression languageEL full name is Expression Language. An expression language. Jsp2.0 was introduced after theEl main role: substitution: out.print ();Get data: The most common is to get data from 4 domain objects
differenceJSP and HTML, the most significant advantage is that the JSP can be written in Java code, but not in HTML. ---------------------------Writing, which can declare a variable or method, note: The variables declared here are global Compared to
First, the Origin of JSPIn many dynamic Web pages, most of the content is unchanged, only the local content needs to be dynamically generated and changed. For example, the number of times a news is viewed is changed dynamically, and the code that
JSP is a combination of Java implementation logic and HTML.The principle of JSP is that the JSP code will generate a Java file at the first execution,It is then compiled into a class file, which is equivalent to the previously written servlet
Use Application on JSP pagesYou can see that the webapplicationcontextutils is usedInstead of Webapplicationcontext.root_web_application_context_attribute like1. Get an instance of the IOC container from the application domain
includes and two child elements.Where the element already exists at JSP 1.2, and is the new element of JSP 2.0.The element consists of eight sub-elements, each of which are:1.: Description of the setting;2.: set name;3.4.5. syntax is not
Javaweb usually refers to Java application development on the server side.In general, the server is operating under network communication conditions, which can not be separated from the HTTP protocol.The HTTP protocol is the specification for server
I. Expression tags Effect: 1. Evaluate the value of an expression 2. Display the value of an expression on the pageNote that: cannot have semicolons.Two. Declaring an expression Function: Declare variables and functions that can be called by Java
To facilitate the modification and subsequent packaging routinesFirst user visited page from Web. Xml to find index.html Welcome page settings, this can set a limited access to the page, here is index.html then the user can be sent through the index.
Features of built-in objects:1. Provided by the JSP specification, without being instantiated by the creator.2. Implementing and managing through the Web container3. All JSP pages can be used4. Available only in expressions or snippets of script
1. Static embedding of sub-pages static embedding support jsp , html and xml plain text. Static embedding is done at compile time, which is equivalent to inserting the text of a child page directly into include the location of the label. A child
Steps to use:1. Creating MAVEN Web Project projects2. Add dependencies in the Pom.xml filexsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" > 4.0.0 com.wyl SpringbootJSP war 0.0.1-SNAPSHOT springbootjsp
New project, the new JSP page when the report exception: This Line : -The superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Path -The superclass " Javax.servlet.http.HttpServlet "wasn't found on the Java
Operating system: Windows Server 2003Install the Software:Jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exeApache-tomcat-6.0.53.exeTask: Publish a JSP programOperation Steps:First, configure Java:1. Tap My Computer, right-click Properties, new
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.