The review of Jsp/servlet technology is as follows
1. Requestdispatcher.forward ()
is on the server side, when using forward (), the Servlet engine passes HTTP requests from the current servlet or JSP to another servlet,jsp or normal HTML file, or
A. Method for event handling:
function Setreadonly (obj) {if (obj) {Obj.onbeforeactivate=function () {return false;};Obj.onfocus = function () {Obj.blur ();};Obj.onmouseover = function () {obj.setcapture ();};Obj.onmouseout = function ()
Generally at the beginning of each page, add:
pageencoding= "UTF-8"%>
Request.setcharacterencoding ("UTF-8");%>
The role of Charset=utf-8 is to specify that the JSP output to the client is encoded as "UTF-8"
Pageencoding= "UTF-8" in order for
JSP is Java server PAGE,J2EE is Java 2 Enterprise eidtion, they are the sun company built in the Java language of a server-side programming technology, in simple terms, it is used to dynamically generate web pages of a technology, Now the main
One, the need for MVC
Separates the code that creates and operates data from the code that expresses the data. JSP separates most of the performance content from the dynamic content. And the servlet handles business logic.The servlet is responsible
JAVA SERVER PAGE
The JSP itself is a servlet, so it has all the benefits of a servlet.
The JSP is converted to a servlet the first time the JSP is accessed.Extends Httpjspbaseand compile it into. class.
Jsp:Good performancePlatform IndependentTag
One, JSP page display garbled
The following display page (display.jsp) will appear garbled:
JSP's Chinese processing
Out.print ("Chinese Processing of JSP");
%>
For different Web servers and different JDK versions, the processing results
A. Requestdispatcher.forward ():
is the server-side effect. When using forward (), the Servlet container passes HTTP requests from the current servlet or JSP to another servlet,jsp or normal HTML file, which means that your form is submitted to
The exception information in web development is very heavy information, it is very important to the developer, it is more important to convert these exception information to the information that the user can understand ~
In the simple JSP
In JSP2.0, the addition of El language, can be used in El language, through the El language, to achieve the acquisition of data, further scriptlet code from the JSP page separate.
The El language is convenient for everyone, but sometimes you will
ArticleList title author Types Click Join int i;int ipage=5; Pagesint allpage; Page numbersint pages; The number of pages acceptedint cpage=1; When you are in front ofint spage; Start Pageint allcol=0;Vector V=null;Data Library Connection
1, with database software (such as: MySQL) to create a database, the database registered with the database name is just the data created
Library, if it is a data source name, ODBC configuration is required.
2, the driver will be placed in the
The description and solution of the problem of the JSP page IMG Image caching
L Problem Statement:
When the information of the customer service personnel containing the avatar is modified (including changes to the avatar information), the data
This section focuses on using SPRINGMVC for controller to view, involving code that contains JSP views,
Unlike the largest configuration point in the previous chapter:
The controller @ResponseBody that no view points to is critical code that
used to locate or sample a JavaBeans component. will first attempt to locate a bean instance, and if the bean does not exist, then will sample from a class or template. In order to locate or sample a bean,, the following steps are gathered, in
The top of the page configuration: web.xml file to write the code filter, which is as follows:
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encodingFilter
/*
Note: (The above code must be written at the
Think about learning Javaweb has been for some time now, summarize the method of passing parameters between JSP pages 1. Using JavaBean
JavaBean class:
Package entity;
public class User {
private String username= "";
Private String gender= "
Ha ha. It is obvious that I have exposed the white, the following is my project in the problems encountered, and solutions, there is a framework for the integration of the configuration we use is ssm
The first question is here.
1). Using JSTL
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