Today, I encountered this problem and thought that the unbind ("hover") could be done directly, but failed. I found a lot of online is not very correct, and finally I saw the correct method on a foreigner's blog, now share, the original address http:
Some basic custom message mechanisms have been studied, which is sufficient for some simple development.
Now let's try to face some slightly more complex architecture designs.
First, a plug-in mode is added:
Plugs
Var plugs = (function ()
JSP tag
JSP tags are also called Jsp Action elements. They are used to provide business logic functions on JSP pages, avoiding the difficulty of maintaining Jsp pages by writing java code directly on JSP pages.
Common JSP labels
tag
the tag is
(1) import = "package. class" or import = "package. class1,..., package. classN ".
Mso-hansi-font-family: "">
You can specify the packages you want to import. For example:
The import attribute is the only one of these attributes that can appear
There are the following situations: customer evaluation-free standards After submission, NO content of two hidden domains is found. The reason is simple and the scope is different. Therefore, the two hidden domains cannot be accessed by
Define a JavaBean (JavaBean is actually a simple java class) Javac-d./UserBean. java generate package file 01Package com. javaweb. ch07;02// A simple JavaBean example03Public class UserBean {04// User name attributes05Private String username;06//
1. Add the struts2 package2. Configure the struts2 filter in web. xml[Java] struts2 org. apache. struts2.dispatcher. ng. filter. StrutsPrepareAndExecuteFilter struts2 /*
3. Write struts. xml and test the application to verify that the struts
Directory order:
Install MySQL
MySQL management software SQLYog Enterprise
-- 30-day trial expiration Solution
Use SQLYog Enterprise to create a database
MySQL Parameters
1. Install MySQLDownload and install. Configure the user name and password
1: Let the preceding Action directly implement the Struts2 Framework Action interface. It provides several constants and an abstract execute method. The following is the Action interface provided by struts2.// Define five string constants and return
1. array listVar arr = ["zx", "123", "4.7"];Each array has the length attribute.
Var arr = [1, 5];The empty element is undefeated.
Var arr = ["x +" + 1, 12.3];The array element can be an expression.
Var arr = [[1, 2], "hello", "3.8"];Array elements
There are three different ways to use assumerver Pages to process XML documents. Each method helps improve the level of separating Page code from XML data, it simplifies the development of web pages and improves the reusability of components and
Bean-related standard actions:
Jsp: useBean action automatically creates a person attribute when there is no person attribute, and assigns it null
Jsp: useBean body: www.2cto.com
When jsp: setProperty is in the jsp: useBean body, attributes are set
1. Download and install ant. apache-ant-1.8.2 is used here. Unzip the package without installation. Put it in a directory, such as D: \ Program Files (x86) \ apache-ant-1.8.2Second: configure the ant environment variable. First configure ANT_HOME =
I. Source Code deployment and Compilation: (1) Source Code directory structure. Create a package under src: com. jspsmart. upload: Put the following five java source code files in the above package: (2) Open "SmartUpload. java, find "String value",
The so-called built-in object (ImplicitObject), also known as an implicit object, is an object that can be directly used when you write a JSP page without any declaration (declare. These objects are implemented and automatically managed by
(1) Servlet-related built-in objects: page and config
Page: Object type, which is rarely used.
The page object represents the JSP page itself, just like the this keyword in Java. More accurately, it represents the Servlet after JSP is translated.
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