1. RequestDispatcher. forward ()Is used on the server. When forward () is used, the Servlet engine transmits the HTTP request from the current Servlet or JSP to another Servlet, JSP or common HTML file, that is, your form is submitted to. jsp, in.
1) Comparison of Action Implementation classes: Struts 1 requires Action classes to inherit an abstract base class; a specific problem of Struts 1 is the use of abstract class programming rather than interfaces. Struts 2 Action class can implement
1. directive elements: controls the generated servlet structure.
JSP commands are used in the "conversion phase" to provide information about the entire JSP page, affecting the overall structure of the Servlet generated by the JSP page.
The
Dynamic INCLUDE
Use the jsp: include action to implement always checks for changes in the contained files. It is suitable for inclusion of dynamic pages and can contain parameters.
Static INCLUDE
Implemented by using the include pseudo code.
Create an index in the application. jsp file. The file index_jsp.java and index_jsp.class will be generated under the tomcat work directory, that is, the java statement is embedded in the html language. on the server side, the class file will be
Before introducing the methods, we should first understand the specific problems. The JSP Chinese Garbled text discussed in this blog has the following aspects: page garbled, parameter garbled, form garbled, source file garbled. Next we will solve
LAMP: A golden combination of Linux + Apache + MySql + PHP1. tomcat preliminarySet the environment variable JAVA_HOME: JDK directory -- otherwise, startup. bat cannot be started.ModifyConnectionTimeout = "20000"RedirectPort = "8443" type = "regxph"
The database looks for the table where a string is located.
Method 1 occasionally goes wrong
[SQL]-- Method 1Declare @ sSearchContent varchar (100) = 'f6f89834-817c-47d7-a436-6484754111cb'Bytes -----------------------------------------------------
Statement: This article is an article from the blog site. When you query the relevant information, you will see the same results... It should have been seen, but I did not identify the true and false, so I copied it... Very speechless... Again, I
Urlrewrite, as its name implies, is to rewrite the URL. All users get are URLs that have been processed. I think there are three advantages: 1. improve security, this effectively prevents some parameter names and IDs from being completely exposed to
The integration process with Struts2 is really easy. however, after implementation, the image cannot be uploaded. After the upload, "the file does not exist" is displayed, and some information is found online. After summary, this function is finally
1. Summary Struts2 is simply an interceptor stack or a series of interceptors. The default interceptor is used to process user requests, use OGNL, and form verification. The spring interceptor is mainly reflected in the transaction management of AOP.
In jsp, if you need to process complex data, defining a java method above is a very effective solution, and pushing the responsibility for processing data to this method, then the main process of the jsp page will not be affected. Of course, you can
The first JSP-HelloWorld! Every "First Love" is mysterious, revealing the secret of JSP!
JSP is also a j2ee specification.
JSP (java service Page) is a dynamic web Page Technical Standard promoted by sun and participated by many companies.
The
Requirements (3)Http://www-900.ibm.com/developerWorks/ I /c.gifCustomer Oriented, not Program OrientedLin Xing (iamlinx@21cn.com)In October 2001, software developers were always confused about why the software was made according to their needs, but
Create a Windows application, point to "new" on the "file" menu, and select "project ".In the Create Project dialog box, select Visual Basic Project in the project type pane, and select Windows application in the template pane ". In the "name" box,
We can see on the Internet that many friends use HttpHandle + Server. Transfer to perform urlrewrite in asp.net. In fact, this method is incorrect. First, HttpHandle cannot implement urlrewrite; second, Server. Transfer is a standard redirection,
In the page or background response, directly add your file with the file header and write the file stream. For example, if you write on a page like this, you 'd better write it in the background: "> My JSP 'test. jsp 'starting page -->
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