1. application is a "global context" object that can be used in JSP, which is equivalent to a "global access zone" in an application, as long as data is put into the application. setAttribute ("key", "value");), which can be used anywhere.
Directory
1. struts2 result. 1
2. result type... 1
3. Differences between chain, redirect, and redirectaction... 3
4. Result's understanding about param... 3
5. Global View... 4
6. Custom extension) result type... 41. struts2 result
A process
The Action class of Strut2 obtains all relevant values through attributes, such as the request parameter attribute values. To obtain these parameter values, the only thing we need to do is declare the attribute with the same name as the parameter in
Upload. jsp
File upload example
Struts. xml:
/WEB-INF/upload. jsp 2000000 /WEB-INF/OK. jsp /WEB-INF/error. jsp
Action:
Public class UploadAction implements ServletContextAware {// enter the private File
1. Start with "P" of JSP, which page can be executed? Impossible! It will certainly be an object, that is, jsp is an object, but who will make it new; what is its class?
The first problem: tomcat is a new client. Yes, jsp must comply with certain
Public class testPropertydescription {@ Test public void testcrud () throws Exception {Method [] Methods = IResourceService. class. getMethods (); Method [] declaredMethods = IResourceService. class. getDeclaredMethods (); for (int I = 0; I
Public
I wrote a page this evening and found that many selectors are used, especially when multiple selectors exist on a tag.
So what will happen when all the five selectors are added to one tag? I tried it. We will share the following results with you.
Javaweb consists of three layers: presentation layer, business layer, and persistence layer;
Jsp is the presentation layer, which collects user operation data and renders the data;
The servlet receives data, calls the service, and redirects to the
Http://boylook.itpub.net/post/43144/531419
In the previous stage, a Sqoop extraction Job specified a xxx_id as the splitkey and failed to be extracted. It is assumed that PK is an int and varcharhttps: // issues.apache.org/jira/browse/sqoop-653is
The internal Lock Object monitor uses the wait (), Y (), and notifyAll () Methods of the Object class for collaborative communication between threads. The Lock introduces Condition to support communication and collaboration between threads,
use the response Name: secret: confirm the secret:
This article is from the eSupervise blog, please be sure to keep this source http://jtmal.blog.51cto.com/7842158/1300299
Speaking of java, there seems to be a lot of feelings, but it's just a mess, and I can't find a clear clue. However, I 'd like to share some experiences with java.A year ago, if I didn't meet java, and I didn't participate in that java training, I
First, let's look at the following small program:
Int num = 13;
If (num> 10 ){
Char c = (char) (num-10 + 'A ');
System. out. println ("I want to get a char:" + c );
} Else {
System. out. println (num );
}
/*
Output result:
I
Recently, a project used JNDI. To make it easy to change the database and environment, let's take a look at it. By the way, I will share the following methods: the methods on the Internet are messy, my eyes are dizzy. The methods I provided below
In the previous article, we analyzed how to obtain the connection. In this article, we analyzed how to return the connection and clean up the connection. Returning a connection is basically an entry:
In this series of articles "examples of integration of MyBatis and Spring", we introduce Spring's programmatic transaction management. Dabing69221, a netizen, introduced the declarative transaction management integrated with MyBatis and Spring.
I. Understanding:
The proxy mode is a common java design mode. It features that the proxy class has the same interface as the delegate class. The proxy class is mainly responsible for preprocessing, filtering, and forwarding messages to the delegate
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