Recently, I encountered a small requirement. I want to set the resultType returned by some actions to freemarker by default. I first wanted to configure the global result on the action, and then use an expression for the name, and then type =
(1) Jars add commons-fileupload-1.2.2.jar and commons-io-1.4.jar to the web-inf/lib directory (2) web. add the following configuration in xml to the web. PrimeFaces FileUpload Filter org. primefaces. webapp. filter. fileUploadFilter
1. Basic concepts of requests and responses in JSP 1.1: when a user enters a URL in a browser and submits or submits a form, a request is created and sent to the server. Response: when the server receives a user's request, it performs corresponding
Insert title here total website visits: $ {totalCount} www.2cto.com: $ {count} by body /* session. getAttribute ('Count') corresponds to var = "count" scope = "session" *//* application. getAttribute ("totalCount ") corresponds to var =
For historical reasons, this is a small example of SSH integration left over last month. This section describes Spring configurations for each layer, Struts configurations, and several pages. Spring-common.xml, mainly configure transactions: [html]
Struts2 is thread-safe. By default, an instance object is created for each request, which solves the thread security problem caused by servlet to a certain extent. After the Struts2 Bean is handed over to Spring IOC for management, it uses a
This is the framework used for my first project at the company, so I have tried to build it myself. In fact, it is similar to the three frameworks.
This is the package structure of our company. You can understand the package structure. The
A: ----- hyperlink, similar to in html ----- execute an action in a view. ----- if the errors of an action has a value, it is displayed. ----- if the message of an action has a value, it is displayed. ----- add a value to the list, similar to
Struts1 is undoubtedly a classic MVC framework. It has the concepts of front-end controllers and business controllers in Struts. So what is the nature of these two controllers? Let me walk you into its world step by step.
Duties of the front-end
Get reference of Map type request, session, application, actual type HttpServletRequest, HttpSession, and ServletContext:
First three: dependent on Containers
First three: IOC (only this type)
The following three: dependent on Containers
Third:
This function is better when there are many Struts configuration files that need to be divided or separated into multiple configuration files.
Use the label to introduce other configuration files to the Struts. xml configuration file.
For example,
Today, I reviewed the JSP instruction elements and sorted them out to share with you:
1. page command: sets the global attribute of the JSP page. This configuration acts on the entire JSP page and sets static files.
1. language attribute: Declares
MyFaces is an successful implementation of JSF specifications and it is the core members of Apache web framework family. In this recipe, we recommend e its core class in the code manner.
1. Facade Servlet
MyFacesServlet is the subclass of
I wrote this post to learn more about Chinaasp development in recent months.Everyone has also read the posts of bean curd and other people. He complained that many people on the Forum are asking for less.In my opinion, most people are pragmatic,
1Set cn = server. createobject ("adodb. connection ")
Object cn used to create a database connection
2Cn. open "... con_str ..."
Call the open method of cn and use the string in the middle of double quotation marks as a parameter to open the
Author: Xiao Yue mark from: http://blog.csdn.net
It is often seen that the user raises an HTTP 500 error and does not know where the error is. A simple method is provided.Premise: Set the site for IIS to be debugged. In the site Properties> main
The problem encountered in reality is: Export EXCEL 1. Use UTF-8 encoding only output header, no output data, garbled; when there is data output, it will not garbled. 2. Use GB2312 encoding output with the UTF-8 on the contrary, there are data
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