to handle the exceptions that a JSP program might produce, you can do so from multiple angles: You can target specific code, you can target specific files, or you can target the wrong type. If you are targeting specific code, you can use the
Goal:
U master the internationalization of Java Web applications;
U master the formatting of the numbers in the page information;
You have the formatting of the date and time in the page information.
With the internationalization of the global
1, www.tuckey.org/urlrewrite/download URL Rewrite jar Package
2. Copy jar package to project Web-inf/web.xml
3, in the Web.xml configuration URL Rewrite, the code is as follows:
UrlRewriteFilter
First, download and decompression XAMPP:
Download Windows version xampp, such as "xampp-win32-1.7.5-vc9.7z", decompression put in such as: "C:xampp"
Second, configure the Tomcat user role:
In the "C:xampptomcatconftomcat-users.xml" file
1.jsp is compiled into a servlet. (JSP is the essence of SERVLET,JVM can only identify Java classes, not recognize the JSP code, the Web container to the JSP code into the Java class can be recognized)
The 2.jsp is better at showing on the page,
JSP combines JavaBean to generate a static page sample 1, why to do: Save the cost of operating the database non-stop, reduce the cost of parsing JSP pages 2, how to do: very simple, that is, the use of file operations, the need for the
P164 example 5-1 Common SQL statementsP178 Database connection Pool (1) The role of connection poolingStore multiple database connection objects, get 1 connections from the pool when the program needs it, and then return the connection pool when the
1.springboot Why is it not recommended to use JSP?Reference Address: Https://spring.io/blog/2012/10/30/spring-mvc-from-jsp-and-tiles-to-thymeleaf 2. What are the advantages of using the Freemark template engine?Reference Address:
The Spring MVC jsp passes parameters to a controller that involves date type data and needs to use a type converter: The author now finds two types of converters that can be used: type one : Implement CONVERT Interface (source data, Target
JSP Implicit ObjectIn this chapter, we will discuss and learn about implicit objects in JSPs. These objects are Java objects that the JSP container provides to developers in each page, and developers can call them directly without explicitly
Software 152 Tang WeiFirst, the basic principle of JSP and the relationship with ServletBefore the JSP was present, we visited the Web site as a servlet, which returned the HTML code. Just like this: Out.Write"\ n");Out.Write"\ n");Out.Write"\n"
What is a JSP? To interpret the JSP's nine built-in objects, you must first understand what is a JSP? JSP full name Java Service pages Chinese: Java Server page. In fact, see JSP learned. NET can think of ASP, yes, the two really look alike. ASP is
Customizing the role of Tags: replacing Java code for JSP pagesStep : 1. Label processing class (the label is an object, it needs to have a class first)2.tld file It is an XML (can be borrowed from the C tag), generally put under Web-inf, do not let
The JSP full name is Java Server Pages, which, like Servle technology, is a technology defined by sun to develop dynamic Web resources. The biggest feature of JSP technology is that writing JSP is like writing HTML, but it can only provide static
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,
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.