/uploads/allimg/131228/1545325B6-6.png "title =" 47.png"/>
The details are saved. It will go to the logging. properties, log4j. properties, service. properties and other files from the $ CATALINA_HOME/temp/liferay/com/liferay/portal/deploy/dependencies directory.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1545325V1-7.png "title =" 48.png"/>
Copy to the WEB-INF/class directory under the portlet temporary directory we specified with the srcFile variable.
Next, it w
() method after execution
BodyTag. EVAL_BODY_AGAIN: Call the doAfterBody () method after execution.
Step 2. Create a tld file (tag library descriptor)
An XML file used to describe tags
Usually placed in a WEB-INF directory (/WEB-INF/*. tld)
Abc. tld
PUBLIC "-// Sun Microsystems, Inc. // dtd jsp Tag Library 1.2 // EN"
Http://java.sun.com/dtd/web-jsptaglibrary_1_2
output! Example: Yyyy-mm-dd HH:mm:ssKeep 2 digits after the decimal point and it will be rounded! If it is less than 2 bits, fill it with 0!Keep 2 digits after the decimal point and it will be rounded! If less than 2 bits, do not fill the bit!Custom labels
Steps
Label processing class (tag is also an object, then you need to have class!) )
TLD file, which is an XML
Use
Label Processing classSimpletag Interf
say: One day I went to a restaurant, because the restaurant door has a pool of water, resulting in slippery road, I accidentally fell, so I came to the restaurant manager, held accountable, the restaurant manager told me that this is because I walk the wrong posture, So slipped and fell, nothing to do with the restaurant.2. Why not Get;set; attribute, instead of using getxx (); Setxx () method instead, does reflection not cost?I know of struts\spring\hibernate in a lot of this way, such as the
Content is original, reproduced please indicate the sourceOutside the questionBecause of the needs of the project-no matter how it is generated-the need to support the use of a Web application as a jar package for other applications has the following process.This process uses spring and SPRINGMVC (the version used is 3.1.4, after the description) of a number of things, if not the thing, please float.What do you want to do?The web app that needs to be packaged contains the following:
Sta
Js
Tag Library taglibtags are defined and distributed in a structure called a tag library, which is a collection of meta information and classes:1. Label Processor: Java class that implements custom label functions.2. Tag additional information (TEI): Provides a side series to the JSP container to confirm the label attributes and the class that created the variable.3. Tag Library Descriptor (TLD): An XML document that describes the properties of a sin
to derive results from concrete builders;4. Builder mode, simulation scenario: [See an example of a description of the builder's pattern is good]Said a family to build a house, but the house owner or Other people do not know how to build a house, so he has to ask a few workers, the building of the team has to have a foreman, to the owners of the idea of building a house, the foreman according to the requirements of the owner of the design requiremen
-1.0.1c.tar.gz decompression after the source root directory directly run:$./config$ make$ make Test$ make InstallCrtmpserver compilation: Unzip the download to the GZ compressed package, run the following command:CD crtmpserver-717/builders/cmake/CMake.MakeReport the following error when make:In the file tinyxmlparser.cpp there is a variable ptrdiff_t not defined, we open the file, in the No. 407 row variable ptrdiff_t plus std prefix can be changed
The builder pattern is a created design pattern.Design intent: Separate a complex class representation from its construction so that the same build process can derive different representations.Instance class diagram:Ivehiclebuilder: Abstract builder, to create a vehicle object and create an abstract interface specified by its related parts, the production process of the product is broken down into different steps, so that the concrete builders have mo
, Resource Description format (RDF) and Channel Description format (CDF) are applications that use XML definitions. XML and HTML are more like cousins than brothers.
In fact, XML and SGML are compatible-XML documents can be read by any SGML production or browsing tool. However, XML is not as complex as SGML, which is designed for limited-bandwidth networks, such as the Internet. XML specification partner Tim Bray says XML is designed to take advantage of SGML, remove complex parts, keep it li
css| Design | Web Page Design | website acceleration
About CSS
Use CSS abbreviations to speed up your website
A key indicator of Web site usability is speed, or rather, how quickly a page can appear in a visitor's browser window. There are a number of factors affecting speed, including the speed of the Web server, the Internet connection of visitors, and the size of the file that the browser must download. Although you can't control the speed of your servers and connections, you can control the
Java class can only be called in an El expression, and the static method of the Java class needs to be described in the TLD file before it can be called by an El expression.The El Custom function is used to extend the functionality of the El expression, allowing the El expression to do what ordinary Java program code can do.1.5. EL function Development StepsIn general, the development and application of El Custom functions consists of the following t
, and the static method of the Java class needs to be described in the TLD file before it can be called by an El expression.The El Custom function is used to extend the functionality of the El expression, allowing the El expression to do what ordinary Java program code can do.1.5. EL function Development StepsIn general, the development and application of El Custom functions consists of the following three steps:1. Write a static method of a Java clas
1. To develop a custom behavior, you need to use a series of classes and interfaces, which are called the tag extension mechanism in JSP1.1 specifications ). All interfaces and classes required to implement the tag Handler are defined in the javax. servlet. jsp. tagext package. The two main interfaces are Tag and BodyTag. To make the development of the tag handler easier, the API defines two supported classes: TagSupport and BodyTagSupport. These two classes provide the default implementation fo
2015-09-23 Jstl label (ii) One: FMT Label:formatdateTo use the FMT tag in a JSP page:The 1GT;FMT tag library is used toLattice-type output ofThe label for the formatted date is:Where value specifies a variable of date type; pattern is used to specify the date template for the output, for example: yyyy-mm-dd hh:mm:ssTag Value: Specifies a variable or constant of a numeric type; pattern: Specifies the type of the number that is formatted, and also rounds for example: 0.00,#.## use 0 and # are diff
var.Traverse Map----------------------Loop stateYou can use Varstatus to create loop state variables!The loop state variable has the following properties:*count: Number of looping elements*index: The subscript of a looping element*first: is the first element*last: is the last element*current: Current ElementResults0 1 true false one1 2 false false two2 3 false True Three====================================FMT LibraryIt is a format libraryValue: Specifies a variable of type datePattern: The temp
of implementing the SimpleTagSupport class (similar to implementing the SimpleTag interface.
First, you need to prepare a SimpleTag. tld file for registering custom tags. This file is in the apache-tomcat file, and the general address is inE: \ apache-tomcat-6.0.39 \ webapps \ examples \ WEB-INF \ jspThe name isJsp2-example-taglib.tld.
Use a jsp page that shows the current time as the first example:
Create a custom tag:
1) create a tag processing
because there is no JSP expression. Creating a tag library Descriptor (TLD) file JSP tag Library requires a tag library Descriptor (TLD) file to customize tag naming, their attributes, and Java classes that operate on the tag. Jspcache. tld describes two custom tags,
There are two attributes: the id of the cached page fragment and the range of content to be
1. To develop a custom behavior, you need to use a series of classes and interfaces called tag extension mechanisms in JSP1.1 specifications ). All interfaces and classes required to implement the tag Handler are defined in the javax. servlet. jsp. tagext package. The two main interfaces are Tag and BodyTag. To make the development of the tag handler easier, the API defines two supported classes: TagSupport and BodyTagSupport. These two classes provide the default implementation for the above tw
not talk about the specific reason for this operation and the principle. You can refer to the following article: details on Drag and Drop upload on Renren homepage (HTML5 Drag Drop, FileReader API, and formdata). However, the code for uploading ajax files is still a bit different, because Renren seems a little troublesome, I will find another way.The last step is to upload some PHP code. Here I just provide a reference. You can compile it as needed.The Code is as follows:$ R = new stdClass ();
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.