HTTP Error code, for example: 404
exception
JAVA exception type with the full name
/path
related resource paths on the
Web platform
/error-page>
example:
404
/error404.jsp
JAVA. lang. exception
/condition T. JSP
_______________________________________________The JSP-
common JSP purposes, and you can also execute tag handler to extend the class support. Follow these steps.
First, execute a label manager class:
packagecom.myactions;
(importstatementsgohere)
publicclassMyActionTagextendsTagSupport{
...
}
Next, compile the code and place the class file in the class library of the program. Then, you will need a Tag Library Descriptor (TLD) file, which is an XML file to match your operation
remove pages from jsp script elements
B) make java code appear as few pages as possible
C) Advantage: it can be used with EL expressions to replace attribute values for further dynamic changes.
3) Use
A) import the tag Library (this step is required in Eclipse and other tools)
B) Steps for using tags in the tag Library
I. Add JSTL JAR files: jstl. jar and standard. jar to the WEB-INF/lib directory of the application (see the courseware directory "JSTL label library" for the jar files ")
Ii. Spe
, 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.
$ R = new stdClass (); header ('content-type: application/json'); $ maxsize = 10; // Mbif ($ _ FILES ['xfile'] ['SIZE']> ($ maxsize * 1048576 )) {$ r-> error = "the image size cannot exceed $ maxsize MB" ;}$ folder = 'files/'
respectively.
You can create a tag library for common JSP purposes, and you can also execute tag handler to extend the class support. Follow these steps.
First, execute a label manager class:
Packagecom. myactions;
(Import statements go here)
Public class myactiontag extends tagsupport {...}
Next, compile the code and place the class file in the class library of the program. Then, you will need a tag library Descriptor (TLD) file, which i
learned before, the random forest fern of TLD records the number of positive and negative samples to calculate posterior. This method is better than long time tracking, and TLD performs well in every detail, its update model also has the theoretical support of dynamic systems. These are my personal opinions and I hope to have more communication. -- Old bear
5. If you add trick to some tracking algorithms,
This article from http://blog.csdn.net/carson2005/article/details/7647519
I have translated an article on PN learning before: NLP. Pn learning is an important module, especially in TLD tracking algorithms. If you cannot fully understand this part, it is difficult to fully master the essence of the TLD algorithm. Therefore, based on the previous translation, I will introduce the principle of PN learning base
the Setpagecontext method of the tag interface to initialize the PageContext variable before calling the doStartTag method. The tag interface will be described in section 1.1.3, where it is necessary to implement the tag interface as long as all the tag classes are known. To simplify the implementation of the Label class, the JSP API provides a TagSupport class, with the TagSupport class, where the user does not need to implement all the methods of the tag interface when writing the tag class.3
value of this tag/NBSP;NBSP;NBSP;NBSP;NB sp; out.print ("Hello JSp2.0 tag"); } Then build the TLD file. As shown in the figure Select Taglib Descriptor Next we can select where to generate the TLD file, and the name, where I have not changed its default value. Click Next > Until we can select the tag body content for empty. Finish. You can see the JSP Tag Wizards v3.0 generates MYTAG2.
Bodytag interface, which are executed by the TagSupport class and the Bodytagsupport class respectively.
You can build a tag library for general-purpose JSP purposes, and you can also perform tag manager (tag handler) to extend the support of classes. Here are the steps to implement these procedures.
First, the class that executes a tag manager:
Packagecom.myactions;(Import statements Go)public class Myactiontag extends TagSupport {...}
Next, compile the code and place the class file in the pro
Composite pages, is always a development of the Web application must face the problem, the struts of the titles have tired, heard Sitemesh good, try, originally thought complex, who knows to use it is so simple, too amazing.Write down the trial tutorial:1. Prepare a Web project to download the Sitemesh package and TLD files to the Sitemesh official websiteHttp://wiki.sitemesh.org/wiki/display/sitemesh/Home2. Add the Sitemesh-2.3.jar to the classpath a
process for JSP tags
When you use Java processing classes to develop custom JSP tags, you are primarily divided into the next few steps.
– create a processing class for the label (tag Handle Class). This class implements the tag interface to define the behavior of the label and invoke execution when the JSP engine encounters a custom label.
– Create a tag library description (TLD) file (Tag Library descriptor file) that describes the label processor
tag library for common JSP purposes, and you can also execute tag handler to extend the class support. Follow these steps.
First, execute a label manager class:
Packagecom. myactions;(Import statements go here)Public class MyActionTag extends TagSupport {...}
Next, compile the code and place the class file in the class library of the program. Then, you will need a Tag Library Descriptor (TLD) file, which is an XML file to match your operation name an
file (TLD, this file is an XML file with the extension *. tld.
Infix. tld:
1.0
infix
http://club.chuxing/infix
Eval Infix
eval
cc.openhome.InFix
double eval(java.lang.String)
In $ {infix: eval (...)}, the eval n
JSP custom tag Library Development demonstration, and provides a ready-made example for download.
Development of tag library programs in netbeans 7.0
1. Create a web applcation. Select New Project> Web applaction from the menu and click Next.
2. Enter the project name taghello, set a project location, and click Next.
3. Select the application server, Tomcat and glassfish.
4. Complete the project creation.
Add the following code:
Create a TLD file:
I have translated an article on PN learning before: NLP. Pn learning is an important module, especially in TLD tracking algorithms. If you cannot fully understand this part, it is difficult to fully master the essence of the TLD algorithm. Therefore, based on the previous translation, I will introduce the principle of PN learning based on the specific application of the
://java.sun.com/xml/ns/j2ee"
Xmlns: xsi =Http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemalocation =Http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
Mytaglib
3. Configure web. xml
Mytaglib
/WEB-INF/mytaglib. TLD
4. Import it in the header of the JSP page that requires this tag
5. Use (refer to the above steps)
Therefore, a simple JSP tag is deve
1. Several important components of custom tags:Inherited class: javax. servlet. jsp. tagext. *: tagsupportOne attribute: protected pagecontextTwo Methods: Public int dostarttag ()Public int doendtag ()Three constants: skip_body, skip_page, and eval_pageSkip_page, eval_page is the return value of the doendtag () method.Tag library description file (*. TLD)2. Process (Tool: Eclipse ):1. Create a WEB Project2. Create a new package under the project, crea
. Then, you will need a Tag Library Descriptor (TLD) file, which is an XML file to match your operation name and the corresponding Tag manager class.
MyAction
com.myactions.MyActionTag
(whatever)
myData
Related Trialware
. DbUtils (Apache Software Foundation)
. IBM Informix JDBC Driver (IBM)
. MySQL Connector/J 3.0 (MySQL AB)
. SQL4X Manager J 2.2 (MacosGuru)
. Informix Downloads (IBM Red Brick Warehouse 32bit) (Solaris) (IBM)
. Infor
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.