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
The basic composition of 1.JSP pages
Directive Identity (page,include,taglib) directive: Enables the server to perform actions and set properties that are valid throughout the JSP page range, as set by the directive.
HTML Markup Language: mainly
Button type:LINK Type: Back to the previous step " > Back to Previous step Direct Jump Type:Open a new window: The days on the cloud JSP Jump WayThere are approximately three ways to jump using JSPs:1. Response.sendredirect ();2. Response.setheader (
In the direct to format. such as: is to output the attribute date in YYYY-MM-DD format . 2. Use for formatting. such as: or " /> 3. Another way to do this is through an international approach: first
1. Simple Label Introduction
Because the traditional label uses three label interface to complete the different function, appears too cumbersome, is not advantageous to the label technology promotion, the sun Company to reduce the label technology
One, expression language: Expression Language the concise way to generate dynamic content.
The most important two features of 1,jsp2.0: JSP syntax defines custom tags and expression languages.
2, to compute and output values for Java objects stored
1. How to mix JSP and SSI #include?
You can include pure HTML in a JSP by using the following methods:
But if the data.inc contains JSP CODE, we can use:
2. How to execute a thread-safe JSP?
Just add the following instructions
3, JSP How
JSP to upload file support is not as good as the support in PHP, directly into the function, and not like the ASP in order to achieve through the component. The JSP can be implemented by JavaBean. But we do not have to write an uploaded bean on our
For a swing write application, in many projects, it is necessary to embed the page. This not only increases the interactivity and interface operability, but also makes the program more humane.
In the past, most of the interface embedding is mainly
jsp-defines a label with a tagged body--loop
So far, we have defined a custom label with no label. To define a class with a label to inherit the Bodytagsupport class, Bodytagsupport extends the TagSupport class, so the doStartTag and Doendtag
The first time a JSP page is requested, the JSP page is compiled into a Java file,
This requires an option to be configured in Weblogic.xml:
keepgeneratedtrue-1true/
The generated files are placed in the
The JSP page uses the URL encoding to pass the Chinese parameter, in the parameter parsing process will appear garbled. Because Java is designed to take into account the internationalization of the problem, when the Java source code compiled into
version dependencies between the Tomcat Servlet JSP jstl
Keywords: tomcat servlet jsp JSTL version
If the servlet/jsp/jstl is not the correct version, the following exception can easily occur:
generated servlet error: the
type
/*********** I original, welcome reprint, Reprint please keep my information *************/Author: wallimnEmail: wallimn@sohu.comBlog: http://blog.csdn.net/wallimnTime: 2006-11-15/*********** I original, welcome reprint, Reprint please keep my
In JSP programming, sometimes need to involve scanner read control and so on, almost no solution to this kind of problem before, now can be implemented by the way of using Scanonweb control.
First download the Scanonweb control, download the
JSTL Core Tag Library has a total of 13 tags, functionally divided into 4 categories:
1. Expression control Tags: out, set, remove, catch
2. Process Control Tag: If, choose, when, otherwise
3. Cyclic Tags: forEach, fortokens
4.URL operation tag:
First, create the database.
We create an Access database Student.mdb and use the Table Designer to create a table called Table1, and add test data as follows:
Second, configure the data source.
Select Start-> Administrative Tools-> Data Source
1. Use the Label control page logic case: Simulate the development of the tags-development tags-development tags-development of iterative tag development tag Case: Tag control class: P
Ackage Com.csdn.web.example;
Import
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