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,
When Using JSP for web projects, we may encounter problems that cannot be displayed in Chinese.In servlet, request. setcharacterencoding ("gb2312"); (the request is an object of httpservletrequest) is used for processing.Every servlet is very
The error is as follows:
:
It can be seen that I want to upload a numbered value of 0515, but the value is 333 when it is passed to the function, resulting in an error.
After careful checkCodeBasically correct
Cause: Because the string
A tag is used to iterate the content inside the tag. It can be a fixed number of iterations, or the number of iterations can be determined based on the number of objects in the set. body content
A tag has the following attributes:
L var: name of
1. the scope is public, private, and protected.
A: The differences are as follows:
Scope: current class, same package, Child class, other package
Public √
Protected √ ×
Friendly √ ××
Private √ ×××
The default value is friendly when no data is
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
By chance, I saw a website with fresh and comfortable pages. The website is developed using JSP,
Because of my personal interests, I decided to look at the security of the system.Telnet www.target.com 8080GET/maid HTTP/1.1[Enter][Enter]The returned
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
Action commands in JSP include, forward, usebean, getproperty, setproperty, and plugin.
I. include commands
the tag indicates a static or dynamic file.
Syntax:Or
Note:1. Page = "path" is a relative path or a relative path expression.2. Flush =
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
Download necessary files1) download Jakarta-taglibs:Http://people.apache.org/builds/jakarta-taglibs-sandbox/nightly/Extract the taglibs-image.jar and place it in/WEB-INF/lib.Copy taglibs-image.tld to/WEB-INF/2) download poor man's imaging wrapper:
The TTP protocol is stateless, that is, information cannot be transmitted through the HTTP protocol itself. ASP applies the session object to track the user's operation status. JSP uses an object called httpsession to implement the same function.
">This is an example of JSP pager tag.The example is very simple. It can be seen that the amount of code that uses JSP pager tag to implement pagination is very small. Maxpageitems = "" // The majority of each pageMaxindexpages = "" // index display
First:
Second:
Third:
Fourth:
Category 5:
Sixth:
Servlet jump --> request. getrequestdispatcher ("/WEB-INF/pages/error. jsp"). Forward (request, response );
7:
Because the above redirects are all under webroot, or the complete URL address is
Ordinary users can browse products by category through the system)
Ordinary users can search for products by category, price, date, etc)
Ordinary users can place orders through the system (enjoy market price)
Ordinary users can register as system
When using the jetty plug-in (6.1.9) for debugging, we found that accessing #{...} When the expression page (the template expression is used on the page), the following exception is thrown: Java code
Org. Apache. Jasper.
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
A bar chart program was written at the company's request some time ago, but the content was obtained from another analysis software. The software can save the content generation table to the TXT file, I had to read the data by reading the file.
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