In the Struts2 framework, you need to use execute in the response class to return strings in a way that corresponds to the name of the result component registered in the struts. xml file.
Returned string in execute:1. the value in the returned
Data is hidden and encapsulated using the class mechanism. Data members of the class are generally defined as private members, and member functions are generally defined as common, provides communication interfaces between classes and the outside
The previous blog talked about the integration and merging of Struts2 + Spring, mainly using an intermediate jar package. This blog is added with the Ibatis persistent layer framework, and the three frameworks are merged. Struts2 and Spring are the
Appearance mode: the same statistics interface is provided for a set interface in the subsystem. The facade defines an interface that can make the subsystem better use and better use. Like spring, you can configure the relationship between classes
1. Why reflection:If an external Object is received when the program runs, the compilation type of the Object is Object, but the program needs to call the method of the Object running type:(1). If the compilation and running types are all known, use
Jar command Java Archive File, java Archive File. This is similar to a zip file.
Usage: jar {ctxu} [vfm0Mi] [jar-file] [manifest-file] [-C Directory] File Name...
Option:
-C. Create a new archive
-T list the archived content
-X expand the named (or
Conclusion: static attributes and static methods in java can be inherited, but not overwritten. cause: 1 ). static methods and attributes belong to the class and are called directly by the class name. the method name is correct and does not require
When writing a java program, exceptions are usually caught, and some exceptions do not need to be captured forcibly. This is a bad topic. People who transfer from other languages like me are indeed a little confused. Let me explain it again with my
I. about File Download: the core idea of File Download is to copy an object from one place to another. 1. traditional Method: Add a large number of servlet api operations to the Action. the advantage is good understanding, and the disadvantage is
Issue:
There is a message defined in hmResources. properties like this: hm. tool. test. librarySip. comment = Note: To test the verification of a library patron's account, enter a valid user name or barcode and password or PIN.
And use
In
Recently, I learned many similarities between simple factory models and policy models. They all use polymorphism to select different sub-classes, which is difficult to distinguish. So I made a summary.
Simple factory models are used for example,
For 1 GB log files, you need to find the row and row location of the specified string. There are two methods: one is to directly use java functions, and the other is to call the Linux shell Command to assist in processing. The following is an
Write down the problems encountered
The createSQLQuery operation in Hibernate.
1. Return a value, which can be a field in the table or a function value through calculation.
$
Public int getmaxReuslt (){
Object score = getSession ().
MEMENTO, also known as Token, captures the internal state of an object without compromising encapsulation and saves the State outside the object, to restore the object to the previously saved state as needed. The memorandum mode is suitable for the
Struts2 is an excellent MVC-based framework. The use of Struts2 is very simple. Here is a simple procedure for using the Struts2 framework. 1. Download the Jar package
Download the Struts2 Jar package from the Apache website.2. Deploy Struts. xml
Regular Expressions are a very powerful tool. We can do a lot of work that requires a lot of code.
I have never systematically studied regular expressions, and I usually use regular expressions for temporary queries (ps is mainly because I am too
As we all know, smart pointers store a pointer in the form of T * m_Pointer. When the reference count is zero, m_Pointer is automatically deleted,
When T is not void, everyone will write it. But when T is void, the compiler will certainly report an
Question: 1 + 2 + · + n. It is required that keywords such as multiplication and division, for, while, if, else, switch, and case and condition judgment statements (? B: C ). Comment: This problem does not have much practical significance, because
JavaWeb-Summary of Chinese garbled characters 0. pure html garbled characters: Change the editor (sometimes notepad is better than sublime_text). It is best to add 1 between . between jsp and jsp, form (assume that the page containing the form is
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.