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 is an XML file to match your operation name an
"/var/named/data/named_mem_stats.txt ";// Those options shocould be used carefully because they disable port// Randomization// Query-source port 53;// Query-source-v6 port 53;Allow-query {Any;};};Logging {Channel default_debug {File "Data/named. Run ";Severity dynamic;};};View localhost_resolver {Match-clients {Any;};Match-destinations {Any;};Recursion yes;Include "/etc/named. rfc1912.zones ";};[Root @ Server etc] # vi named. rfc1912.zones// Named. rfc1912.zones://// Provided by Red Hat caching
: Org.hibernate.ObjectDeletedException:deleted object would is re-saved by cascade (remove deleted object from Associati OnsReasons and Solutions:Method 1 Delete The cascade of the Set partyMethod 2 resolves the association relationship and then deletesMethod 3 adds cascade to the Many-to-one side but the value cannot be noneLast trick:Check to see if Hashcode equals uses the ID as the only option, and I don't have a problem with Uuid.hex, but with native, I can't. Delete it!--------------------
purpose of Jstl is to refer to the scripting code in the JSP page as well as El. The JSTL standard standard Tag Library has 5 sub-libraries, but with the development, his core library is often used today
Tag Library
The URI of the tag library
Prefix
Core
Http://java.sun.com/jsp/jstl/core
C
i18n
Http://java.sun.com/jsp/jstl/fmt
Fmt
Sql
Http://java.sun.com/jsp/jstl/sql
Sql
Xml
Http:/
Take the most common example of getting an account list: The introduction of tags, prefix can be understood as aliases, or objects, using similar objects. Member."pe" uri="/web-inf/tlds/powerengine2.tld" %>This can be understood as a k/v in a JSP, mapped to a property value in Java by the K in the TLD. Can also be understood as a declaration, because it involves the flow of JSP to Java data, or kv better. Name= "Acnoalias" onchange= "Selec
: Org.hibernate.ObjectDeletedException:deleted object would is re-saved by cascade (remove deleted object from Associati OnsReasons and Solutions:Method 1 Delete The cascade of the Set partyMethod 2 resolves the association relationship and then deletesMethod 3 adds cascade to the Many-to-one side but the value cannot be noneLast trick:Check to see if Hashcode equals uses the ID as the only option, and I don't have a problem with Uuid.hex, but with native, I can't. Delete it!--------------------
next period of time will be an important decision-making basis for the upgrade or not, because the spring boot 1.x version clearly illustrates the absence of a support plan for Java 9, in other words, if you want to run spring boot on Java 9, Then you must upgrade to Spring Boot 2.0.Tips: The current version of Spring Boot 2.0 supports Java 9, but there are still some issues. For example: The JDK proxy support requires the use of ASPECTJ 1.9, but this version is still in RC version, the Apache
Three-step:
First, under the Web-inf to build a folder named TLDs, and then build a TLD file, such as FORMATTIME.TLD, the content is:
Copy Code code as follows:
"Http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd" >
Second, the construction of a class, the content is:
Copy Code code as follows:
Package com.ufinity.taglibTest;
Import java.io.IOException;
Import Java.text.DateFormat;
Import java.text.ParseException;
question is strange to say, why say strange.First, the reason for the problem: The problem occurs in two cases:The form is the date typeWhen uploading filesWhy is that strange? Mainly for the form is the date-type, because I have done n multiple system form is used Java.util.Date, interface using Solve:First question: You change date to string; Convert to action; Of course, the conversion takes the Simpledateformate method.Second question: Remember to add enctype= "Multipart/form-data" in form
matches the Com.myactions.MyActionTag class. The TLD file must be located in the TLDs path of the program.
When you invoke an operation from a JSP page, the TLD tells the JSP the correct class to use the operation. This brings great convenience and requires only a small amount of code.
But where do you introduce SQL? First, you need to set up a database access with connection capabilities. You can use the Javax interface to do this, and javax is visi
Tags: editor need to set src wordpress Master Networking discuz! ContentXAMPP is a very convenient local Apache + php + MySQL debugging environment, in the local installation test WordPress and other various blogs, forum procedures very convenient. Today we are going to show you how to use XAMPP to install multiple websites locally. In general, we only need to put the website program into the Xampp/htdoc directory, and then enter the IP address in the browser HTTP://127.0.0.1/or enter the domain
java.io.inputstreamreader.At Org.archive.util.archiveutils.Solution: Unzip the Heritrix-1.14.4-src.zip in src/resources/org/archive/ The Tlds-alpha-by-domain.txt file in util is copied to the project under the Org.archive.util package.Iv. Some of the configuration items in modulesIn the modules interface, a total of 8 options need to be configured, including the following1.Crawl ScopeUsed to configure the fetch range. Please see the options.Depending
struts2.x+spring3.x+hibernate3.xA First build a Web projectTwo Build StrutsRight-click Project, select Myeclipse->add Struts capabilitiesPop up the Struts Settings dialog box and select Struts 2.1NextComplete the setup, the SRC directory will appear struts.xml,Three Build SpringRight-click Project, select Myeclipse->add Spring capabilitiesSelect Package below 5 packagesNote: If you want to deploy the Spring jar package together, you must copy these jar packages to web-inf/lib, you need to select
, the class that executes a tag manager:
Packagecom.myactions;(Importstatementsgohere)publicclassmyactiontagextendstagsupport{...}
Next, compile the code and place the class file in the program's class library. Then you will need a tag Library descriptor (TLD) file, which is an XML file to match the name of your operation and the corresponding tag manager class.
MyactionCom.myactions.MyActionTag(whatever)MyData
Related to Trialware
. Dbutils (Apache Software Foundation)
. IBM Informix JDBC
generated. The compiled bytecode file is placed with the package name in the Web-inf\classes directory of the Web application that is ready to use the current label. For example, the WEB application is under the directory named Test, and the COM directory generated when the code is compiled is copied to test\web-inf\classes.
Note: When compiling the above code, if it is not done in an integrated environment, for example, by executing the JAVAC command directly at the command line, You need to m
.
--------------------------------------------------------------------------------------------------------------- ------------
Error:
Org.hibernate.ObjectDeletedException:deleted object would is re-saved by cascade (remove deleted object from associations )
Reasons and Solutions:
Method 1 Delete The cascade of the Set Square
Method 2 after resolving the association relationship, delete the
Method 3 adds Cascade to Many-to-one but the value cannot be none
Last resort:
Check to see if hashcode equ
Sometimes when writing a front-end JSP page, you need to get background data, or you want to handle some logic in the background. You can use this method:
1 Background code:
Package com.cd.util;Import java.util.List;Get all Provincespublic class Areautil {private static Icdareaservice Cdareaservice = Springcontextholder.getbean (Icdareaservice.class);Must be a static methodpublic static listreturn cdareaservice.findprovince (grade);}}
2 in the TLD file placed under the Web-inf directory/web-inf
@RequestMapping (value = "/treedata.jhtml")
@ResponseBody public
String treedata (httpservletrequest request), Model model) {
Dynamicparams params = new Dynamicparams (request);
list
Service Layer
Authmanager.java
Menu Management public list
/**
* Remove Duplicates in menu *
*
@param list
* @return
/private list
Public list
DAO layerMenudao
@Override
protected void CreateQuery (dynamicparams params, stringbuf
E:\tomcat
Click Apply OK
ix. installation of easystruts
1. Decompression Org.easystruts.eclipse_0.6.4.zip
2. Copy the extracted directory org.easystruts.eclipse_0.6.4 the folder com.cross.easystruts.eclipse_0.6.4 to eclipse
In the plugins directory in the installation directory, that is, E:\eclipse213\plugins
3. Start eclipse
4. Click the window-> preferences
Click Easy Struts in the left tree to select struts1.1
ADD JREs as follows:
Struts.jar-e:\jakarta-struts-1.1\lib\struts.
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.