Web Server (software ): Apache HTTP Server. Replace nginx Web container: Tomcat,Http://tomcat.apache.org/whoweare.html, implementing JSP, Servlet,Provides an environment for JSP compilation and execution. Provides dynamic Web Services. However,
Now, you can indicate Server The verification method used. "Amazing," you said. "unless I can specify a URL to be protected, it will be of little use ." Yes. It is the purpose of the security-constriaint element to identify these URLs and indicate
untitled document
Physical path of the current web application: The physical path of the JSP file you requested: String Path = application. getrealpath (request. getrequesturi ());String dir = new file (PATH). getparent ();Out. println
Tomcat
Tomcat is a core project in the Jakarta project of the Apache Software Foundation. It is developed by Apache, sun, and other companies and individuals.
Tomcat supports Servlet and JSP specifications. It is a lightweight Web application
1. How to execute a thread-safe JSP?
A: You only need to add the following command:
2. What is the difference between collection and collections?
A: collection is an interface under java. util. It is the parent interface of various collection
Type 1: struts1.2 looping element. name indicates the result set. Reference tag library [Java]$ {X. u_id} $ {X. u_name} $ {X. u_sex} modify Delete
Type 2: struts2.0 looping element. Note: value is the result set. Reference the tag library
Several Methods for passing JSP page values:1. Hide the field transfer value:">
2. url transfer value:Use buttonA. '"Value = "Modify distributor"/>B. Set the onclick = "modifyregion ()" of input ()"Function modifyregion (){Window. Self. Location =
Introduction to JSP sessions
Abstract: Although the session mechanism has been adopted in Web applications for a long time, many people still do not know the nature of the session mechanism, and even cannot correctly apply this
To reduce the pressure on the server, change the original article management system to generate static html files from JSP files and then access the HTML files directly. The following is a simple example.
1. buildhtml. jsp
Try {String title = "JSP
We know that XML + XSLT can be directly output
Supported
XML browsers, such as IE 5.0 or above, but we also need to consider that many Browsers Do not directly support xml. In this case, we need to convert the file to HTML and output it to the
Now JSP has been applied by more and more people to the Development of background programs and the production of dynamic web pages. Today we will introduce how to use JSP to upload files.
I. rfc1867 Specification
In the past HTML, forms cannot be
Introduce tags
Then add
Enter attribute values, such as print, based on the actual situation.
This introduces the statistical report, followed by the parameter report.
Add
For example:
String Param = "cdytzt =" + cdytzt + "; cdyt =" + cdyt + ";
Four random numbers and messy background images are generated. The numbers and background colors change, and the server refreshes (with history. Go (-1)
Prototype reference Alibaba http://china.alibaba.com/member/showimage
------------ File for
JSP's support for file uploading is not as good as PHP's support. It is directly implemented as a function, not as it can be implemented through components in ASP. JSPs can be implemented through JavaBean. However, there is no need to write an
I. jsp file: auto. jsp// Set the format and Character Set of output informationResponse. setcontenttype ("text/XML; charset = UTF-8 ");Response. setheader ("cache-control", "No-Cache ");Out. println (" ");For (INT I = 0; I Out. println ("" + (INT)
JSP is better than ASP. It not only achieves the separation of the presentation layer and the business logic layer, but also provides the custom tag function, which greatly facilitates our development, this is conducive to the maximum reuse of
A filter is an object that can transmit requests or modify responses. It can pre-process the request before it reaches the servlet/JSP, and can post-process it after the response leaves the servlet/JSP. So if you have several servlets/JSPs that need
Today, I looked at the page paging technology of JSP. By the way, I learned that the pages written this time are completely JSP pages, and there is no hierarchical processing. The pages are pure JSP pages, it is helpful to understand paging. I use
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