1 How JSP worksFor:The Dynamic Web technology standard BLABLA...JSP program works in the request/Response mode, the client issues an HTTP request, the JSP program receives the request, processes it, and returns the result of the processing.JSP
Jsp-api Javax.servlet-api Jstl javax.servlet Javax.servlet-api3.0.1 javax.servlet.jspjsp-api2.1 provided javax.servletjstl1.2 Java Web project must have three JSP-related jar packages in pom form
Previously, we have mentioned that JSPProgramIt is a module and has a powerful expression-Request function. Establishing a perfect database access is a challenging process, and the JDBC interface can well complete this process. However, embedded in
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.
Cookie introduction and JSP method for processing cookies
1. What are cookies?
As we all know, the browser communicates with the Web server over HTTP. When a user sends a page request, the web server simply responds
Yes, and then close the
Introduction to JSP custom tag Development
Generally, the following two packages must be referenced to develop JSP custom tags:
ImportJavax. servlet. jsp .*;
ImportJavax. servlet. jsp. tagext .*;
First, we need to get a general idea
Execution Template
The template discussed here will be executed under three custom labels:
Template: insert
Template: Put
Template: Get
The insert tag contains a template, but before it is included, the put tag stores some information-name,
JSP development entry (1) ---- install your machine to use JSP
You will need Java 2 software development tool (jsdk). Its original names are Java Development Tool (JDK), JavaServer website development tool (jswdk), tomcat, or other network
Install Apache + apachejserv + JSP on Linux
The software installation sequence is as follows:
I. install Apache Web ServerA. Use rpmIf you use the RPM kit, after obtaining the Apache web server suite, you only need to enter the following
Send email in JSP
1. We can send mail via any JSP Engine (such as jswdk) that supports sun.net. SMTP packages in Sun specifications.(Warning: Use the built-in internal sun specification package, which will affect your JSPProgram.)
The
Summary: Server Vulnerabilities are the origin of security issues, and most of the attacks by hackers against websites begin with finding vulnerabilities of the other party. Therefore, website administrators can take appropriate measures to prevent
Reference: http://www.cnblogs.com/xnxqs/archive/2005/07/13/191927.html
After a hundred efforts, finally can write their own upload applet, the above URL for standard writing, but this program and the new version of the commons-fileupload-1.0, there
Author: yiwangaffectionate
** Note! **The test results depend heavily on the hardware/software configurations of the machine and vary with the configuration changes. Therefore:This test result is for reference only *
Tested hardware:CPU: Intel PII 3
This section mainly summarizes the solutions to jsp garbled code problems.
1. The most basic garbled problem.This garbled problem is the simplest garbled problem. Generally, it appears new. It is the garbled code caused by inconsistent page codes.
Today, I reviewed the JSP instruction elements and sorted them out to share with you:
I. page commands:Sets the global attribute of the JSP page. This configuration acts on the entire JSP page and sets static files.1. language attribute: Declares
1. Introduction to JSTL
Introduction: in JSP and javaBean, when we use loops on the Web page or use object methods to connect to the database, we need to use jsp script elements inevitably, there is a lot of java code embedded in it. Now developers
Custom tags)
(Prepared study notes)
Step 1. Create a Tag handler class (Tag Processor class)
Package javax. servlet. jsp. tagext
Develop a label processor class for an empty Body -----> 1) implements Tag 2) extends TagSupport
The method of
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.