1. There are 4 kinds of common object-oriented design patterns:
Factory mode, singleton mode, facade mode, and MVC architecture pattern.
After Sun introduced JSP technology, it also recommended two kinds of Web application development mode, one is
jsp-defines a label with a tagged body--loop
So far, we have defined a custom label with no label. To define a class with a label to inherit the Bodytagsupport class, Bodytagsupport extends the TagSupport class, so the doStartTag and Doendtag
Http://www.xxx.com/fckeditor/editor/filemanager/browser/default/connectors/jsp/connector? command=fileupload&type=image¤tfolder=%2f
Use this address to find the path to upload the image, there is a loophole should return an XML file, such as
Simply put, pageencoding is the code of the JSP file itself ContentType CharSet refers to the content encoded by the server when it is sent to the client, for example: pageencoding= "GBK", which means to tell the JVM that the JSP itself uses the
recently, in order to achieve the JSP page in the query result set output to Excel files, search on the internet a lot of data, but most of the Third-party API to achieve the function, it is very troublesome, because I only need very simple features.
Data sharing between JSP and servlet (data passing and invocation of data) (1) JSP (page) passes data to the servlet in the most common way: using form parameters or URL hyperlink parameters to implement data delivery (previously mentioned).
(2)
Sorry, my intention is this: the client executes the program on the client. Runtime.getruntime (). EXEC ("C:/netterm.exe"), written in the JSP on the client, can only start the Netterm.exe on the server.And I just want to perform the Netterm.exe on
The relative paths that are invoked in the JSP and class files are different.
In JSP, the root directory is webroot in the class file, the root directory is webroot/web-inf/classes of course you can also use System.getproperty ("User.dir") to obtain
When obtaining data using the $ (function () {$.ajax ({})}), because the execution order of this method is executed after the JSP page is loaded completely, sometimes because the request menu and JS file loading order, cause the menu to display or
The life cycle of the servlet:
1, the container starts, will read the Conf/server.xml file, to determine the boot port and Web application storage path
2. Web container startup reads the Web.xml file configuration information for each Web
First spit, I stepped on a lot of pits, tears, ah, because not familiar with Maven, there are eclipse bugs, online article information asymmetry ... Well, back to the point, we need to be like this: A project is made up of multiple projects.
I imported a MAVEN project but the JSP page has been an error, I first follow the online experience to operate the following steps:Add dependent dependencies on Javax.servlet in the Pom.xml configuration file: javax.servlet servlet-api
Related information:"21-Day Learning Java Web Development"Response ObjectImplement page Auto-jump1. You can use the AddHeader () method of the Response object to add a header titled Refresh, and specify the page jump time and jump page to achieve
Three, El expression languageEL full name is Expression Language. An expression language. Jsp2.0 was introduced after theEl main role: substitution: out.print ();Get data: The most common is to get data from 4 domain objects
Related information:"21-Day Learning Java Web Development"Page Range1. The current page is valid.2. Set the property by using PageContext's Aetattribute () and get the property through the PageContext getattribute () method.pagedemo.jsp1 @ Page
Related information:"21-Day Learning Java Web Development"Summary of results:1. can contain multiple statements, such as: methods, variables, expressions.2. Type definition, such as: int, string must be case sensitive.Instance code:1 2 3
Javaweb usually refers to Java application development on the server side.In general, the server is operating under network communication conditions, which can not be separated from the HTTP protocol.The HTTP protocol is the specification for server
First, forwarding parameters:1. Transfer the parameters inside the JSP via Loginservlet to Pageselvert:@WebServlet("/login") Public class loginservlet extends httpservlet { protected void dopost(httpservletrequest request,httpservletresponse
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