From the perspective of a three-tier structure, a project consists of at least three layers: data layer, business processing layer, and page display layer. Of course, it can be more complicated. Servlet is powerful for writing business processing
1. create and manage JSP in the opencms Workspace2. You can use a JSP template to create a page that supports WYSIWYG editing.3. Common opencms tasks can be completed through the JSP tag library.4. You can directly access the opencms system through
Recently I encountered a request. getparameter garbled problem. If it is post, you can set the filter method to solve it. If it is a get or hyperlink, it was previously set by setting the tomcat configuration file server. XML to solve, but this is
1. Request object
The request information of the client is encapsulated in the request object, so that the client can understand the customer's requirements and then respond. It is an instance of the httpservletrequest class.
Serial number
JSP enterprise interview questions (5)7-2 illustrates how JDBC works and lists common objects. (Enterprise pen exam)
Establishing a connection is to establish a connection with the database, that is, to create a connection instance. The
I. source generation region exposure
1. adding a special tail signature causes the JSP source code to be exposed in JSP, which also has issues similar to ASP vulnerabilities, for example, IBM WebSphere Application Server 3.0.21, BEA Systems
I. jsp connection to oracle8/8i/9i Database (in thin Mode)
Testoracle. jsp is as follows:
String result = ""; // query result stringString SQL = "select * from test"; // SQL string// Connection string. Format: "JDBC: Database driver name:
When a JSP file is requested for the first time, the JSP Engine converts the JSP file into a servlet. The engine itself is also a servlet. In jswdk or WebLogic, It is jspservlet. The JSP Engine first converts the JSP file into a Java source file. If
The role of the JSP path basepath (this article is a reprinted article,Article transferred from: http://yonglailizhi.iteye.com/blog/719924)
If "relative path" is used in JSP, problems may occur.
Because the "relative path" in the webpage is
Today, it is really annoying to refactor a project... Look at the big head, alas .... There was a problem. There was no problem with the local test. An exception occurred when publishing to the remote server, which was very strange.
The
Many netizens encountered the following problems when learning JSP programming:How to economically build a JSP websiteWhat database does the website use? I am not familiar with MySQL. I want to use SQL Server. The space of the service provider is
Form)
To be honest, no matter ASP, PHP or JSP network programming, interaction with users is inseparable.The human-machine interaction platform basically relies on the corresponding text and list box for input, and then submits the data to the
To create a blog of your own, you must stand on the shoulders of giants, So I first tried an open-source blog system (JSP blog.
So first, I ran it first.
Prerequisites
Local Environment
WINXP, tomcat7, myeclipse10
Open Source project web site:
JSP is based on the Java language, and object-oriented is also a major feature of it. JSP contains a large number of built-in objects and scalable component objects. it can be said that the object is the essence of JSP programming technology. in
Author: fbysssDisclaimer: This article is original in fbysss. If you need to reference it, please indicate the author and reference addressKeywords: smartupload, uploadbean, Linux, Chinese garbled charactersI. smartupload file garbled solution
Sometimes you also need to pass parameters between multiple JSP pages. The following describes the implementation methods.
(1) Add
For example, directly passing parameters
When using response. sendredirect for page redirection, you can also
Document directory
1. attributes need to be added to the original hellotag. java.
2. Add the attribute description to the TLD file:
I. Introduce tags
In fact, we have used several tags in JSP, such as and . These tags are pre-defined. If we
Data Type
There are four basic types:Int data types include: byte (8 bits), short (16 bits), INT (32 bits), long (64 bits ),Float data types include: single precision (32 bits float) and double precision (64 bits double)Values of boolean type
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