It is said that Springboot is a fast-built development framework, just like trying. However, in the use of the process found that after adding a JSP in accordance with the original SPRINGMVC way reported whitelabel error page errors, check all the
one, JSP nine large built-in objects
The JSP has predefined 9 such objects, namely, request, response, session, application, out, PageContext, config, page, exception
1. Request Object
The Request object is an object of type
1. Through the background query, find the corresponding number of pictures back to the foreground, as follows for the background returned images array
">
pro/table1/${ite} ">
2 Pass the parameters (picture path) of
JSP Session Usage
Your session object ID is:
you are
people who visit this site
Session object: An object that is used to hold each user's information separately to facilitate tracking of the
Internet Café number internet café name remaining points &L t;/thead> ${request.obj.serviceCode} 9 "> ${request.obj.servicename} ;/s:else> ${request.obj.chargeCount}
Where: Key code:
function showrealnamecontent (obj, value) {
Author: He Zhiqiang [hhzqq@21cn.com]
Date: 2000-08-04
2000-08-16
Version: 1.1
Functions: JSP database Operations routines-stored procedures-Jdbc-odbc-sql Server
The stored procedures for SQL Server are as follows:
CREATE PROCEDURE
First of all, the official recommendation of the use of template technology, such as Freemark, Thymeleaf, of course, can also use JSP, where the simple configuration of the springboot in the JSP support
1. Add support for JSP
Now the framework is more popular, in order to better understand the framework, Javaweb Basic development form also need to understand.
The following is the application of Jsp+servlet technology to implement login. (Database is not used, data
The C tag we use in web development is the core library in Jstl, providing common support for everyday tasks
: Setting variable values and Object properties
: Display variable contents in page
No label body:
Has the label body:
label Body
JSP custom tags are actually quite useful. For example, you can insert a few simple sentences on a complicated page.
To avoid a large amount of redundant code. For example, you can create a custom tag for playing a magic lamp on a news website. The
How to Use JS programs:
Scripts can be written anywhere in hmtl or JSP.
1. . Several On the same page are interconnected, rather than independent, and variables can access each other. Like java code snippets in JSP.
2. demo : You can write
There are many vulnerabilities that have been exploited by SQL Injection in just 20 seconds. So I checked some information about SQL injection and had some insights. I hope I can share it with new users. Experts laughed!
The general idea of SQL
Cookie. jsp
cookie hello, visitors. Welcome to join us for the first time! enter the name: welcome to [ ! the registration time is:
Deal. jsp
used to write registration information to a cookie
Enter. jsp
guest name:
Doenter. jsp
Online. jsp
hello, the number of online users is: exit
Doout. jsp
Constents. Java
Package entity; public class constents {// static integer variable, used to save the number of online
When sending a client request, call the service method and pass a request and response object. Servlet first checks whether the request is a get operation or a post operation. Then it calls the following method: doget or dopost. Both doget and
Master nine implicit objects:Request Response out session application pagecontext page config exceptionImplicit objects are objects that can be directly used on the page without the need for new objects. Note that... %> or ,
Request object: Stores
In JDBC applications, if you are already a relatively level developer, you should always replace statement with preparedstatement. That is to say, do not use statement at any time.For the following reasons:I. code readability and
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