This article mainly introduces the use of JavaBean in JSP examples, while introducing the relevant attributes, the need for friends can refer to the
The code in the test.jsp is shown below
The code is as follows:
News:
: Represents an instance
The JSP compiler guidelines and instruction components have five types. After JSP 1.0, most of the JSPs are included in a single label that ends with . The new JSP 1.1 specification has been published and is also compatible with XML.
The compiler
the HTTP protocol was invented by Tim Berners-lee, known as the web's father. The HTTP protocol is completely text-based. Browsers interact through HTTP protocol and server, and the default is port 80. You can also explicitly indicate the port
JSP tags replace Java programs in JSP and can be reused to facilitate web designers who are unfamiliar with Java programming.
First create a new Dynamic Web project under Eclipse
1, join
before
/tld/helloworld
Jspthe built-in object is in writingJSPObject that can be used directly without any claimsCommon built-in objectsOut,request,response, session,application the Out object is used to output data to the browserThe request object obtains relevant 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
Controller control page Jump processing foreground background data interactive access ServiceDAO Layer: @Repository Database access layer additions and deletions to the JPA specification of the Hibernate JAP warehouse JPA Automatic parsing method
Springboot Integrating JSP templatesWhen using JSP in the Springboot framework, the page template uses JSP to introduce related dependencies in POM.XNL, otherwise it cannot be returned to the specified page in the controller0, build Springboot
1. JSP client RequestWhen a browser requests a Web page, it sends a series of information to the Web server that cannot be read directly, because the information is transmitted as part of the HTTP header, as shown in:The HTTP request header
---restore content starts---1. SmartuploadThis control is widely used in JSPs, and fileupload controls are primarily used in frames2. If you want to use it, you need to copy the Smartupload jar package in the Tomcat Lib directory.3. Upload a file
A wonderful null pointer exception appearsJava.lang.NullPointerException:null at Org.apache.catalina.authenticator.AuthenticatorBase.getJaspicProvider ( authenticatorbase.java:1192) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (
Methods of JSP to control layer of Java1.form Table Single Submit, the parameters submitted to the background in the form table orderusrenamexxxThe path to the background is: Saveinfo method postBackground received by: @RequestMapping (value=
After the basic deployment of the environment, then began testing, must let him withstand the "test", he will be worthy of your trust. A successful authentication method for the Tomcat server deployment (in the case of the default port):1,
Use Jsp to connect to mobile phone text messages, perform real operations, and perform real operations
Function requestAlarmLiu (){$. Post ("alarm/getPersonAlarmList", {disposeStatus: 'not'}, function (data ){Var sosCount = 0;Var healthCount = 0;For
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