In the traditionalJSPProgram.CodeAndJava codeIt is convenient to write together, but it also makes the page difficult to maintain. The burden of HTML developers and JSP developers increases. We can turn this traditional technologyPage pulling data
Two methods
Two methods are available for JSP include files:
1. Use the include tag, such
2. Use the JSP: Include tag, such
The difference is:
Method 1 is suitable for introducing static content with few changes, such as the header and footer
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. 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.
1Http://www.opensymphony.com/oscache/
2. Add the downloaded jar to your build path.. We recommend that you directly put it under the tomcat/shared/lib directory.
3. Add configuration in Web. xml
oscache /WEB-
Java EE Overview:
Java EE is an open platform with many technologies, including 13 core technologies (Java EE is the general term for 13 technologies ). Create an overall concept.
Thirteen J2EE technologies (specifications)
1. Java database
Reference: http://www.7880.com/Info/Article-42b729a0.html
New:
VoidWrite(Java. Io. File file)A convenience method to write an uploaded item to disk.
Here is the string !!!
Constructor Summary
File(File parent, string child)
Creates a new file
Servlet appearance
Servlet technology and JSP technology are two main technologies used to develop Web applications using Java language. In 1996, Sun released Servlet technology for the first time to solve the performance problems in Web
Guidance:
SummaryThe network teaching platform is a network teaching system for teachers and students. It is developed using JSP + XML + SQL Server. The system structure and functions of the platform are analyzed in detail, the key technologies
I. Using requestdispatcher
1. Add the Web. xml file doc application/vnd. MS-word
2. The procedure is as follows:
Response. setcontenttype ("application/X-download"); // set it to download application/X-DownloadString filenamedownload = "/system
First, let's talk about the functions of several encodings in JSP/servlet.
In JSP/servlet mainly has the following areas can be set encoding, pageencoding = "UTF-8", contenttype = "text/html; charset = UTF-8", request. setcharacterencoding ("UTF-8")
One of the most common issues about the JavaServer Page (JSP) newsgroups is related to recompilation. I don't want to re-compile JSP, but I have to do so. This is a headache for many developers. This article will describe the scenario of
/** Copyright 2002 Sun Microsystems, Inc. All rights reserved.** Redistribution and use in source and binary forms, with or* Modification, are permitted provided that the following conditions* Are met:**-Redistributions of source code must retain
Anyone who has experience in Java Web development knows that there are a variety of data interactions between JSP and Servlet, but the most common one is form submission (I am not wrong here -,-), use the action of the form tag in JSP to specify the
You have a problem with your quick build. You can reset it in window --> perferences --> General --> keys.Set the content assist shortcut to Alt + /.
If you find that the shortcut key for enabling content assist again has not changed after you
Flex's ActionScript and javascript can interact through the externalinterface class provided by Flex. The content displayed in Flex is embedded in a similar portal project, which may take a long time to operate the document. During this period, the
Standard JSP tags can call the JavaBeans component or execute customer requests, which greatly reduces the complexity and maintenance of JSP development. JSP technology also allows you to customize taglib. In other words, taglib can be seen as an
One of my projects is to play the AVI video file on the set-top box, but the test cannot be continued due to unnecessary errors. Therefore, I want to build a tomcat environment in Linux for testing, the previous installation has failed many times
Reproduced in: http://panjiangchuan.javaeye.com/blog/524921
Configure FCKeditor in the configuration file1. directly modify the fckconfig. JS File2. In the custom configuration file, the custom items will overwrite the default settings in the
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