Home  >  Article  >  What file is .do

What file is .do

coldplay.xixi
coldplay.xixiOriginal
2021-01-27 12:00:3134105browse

.do is a file: 1. Web page files with do extension are written in Java language; 2. [.do] is generally the mapping of servlet; 3. [.do] is in the configuration file A configured url pattern; 4. The do file is a web page background program; 5. There is a deployment description file that must be written when developing web applications.

What file is .do

The operating environment of this article: Windows 7 system, Dell G3 computer.

1) The web page file with do extension is written in java language and uses Struts as the framework; its running environment is tomcat, weblogic, etc.; usually

The databases used include oracle, mysql, mssql, access, etc. The web page background program is *.jsp or struts component file *.do;

2) .do is generally the mapping of servlet. The j2ee platform, which is developed based on the struts framework, is available in web.xml;

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
<servlet-mapping>

means that .do requests are handed over to the servlet called action for processing. The action is transferred to the corresponding

Action class according to the difference in the front of .do,.......do format!

3).do is a url pattern you configure in the configuration file

*.do is the mapping of action.

When the URL address you submit ends with .do Just submit it to the action you configured in the configuration file for processing!

So you can configure it arbitrarily in the configuration file, you can .a or whatever, it doesn’t matter, do is just a random name!

The important thing is that the url pattern you configure must be the same as the url pattern you submit! In this way, the data submitted can be processed in the corresponding action;

4) do file is a web page background program, *.jsp or struts component file *.do, it is not a file , and there is no real .do file. It cannot be opened directly. Struts uses a special servlet as a "switch" to transfer requests from the web browser to the corresponding serverpage.

5) There is a deployment description file (web-inf/web.xml) that must be written when developing web applications.

This file describes the configuration of your web application, including welcome pages (files that appear in the directory

when the request is not specified), servlets (path or extension) name) and the parameters of those servlets.

In this file, you configure the struts actionservlet as a

servlet that handles requests for all specified mappings (usually with a .do extension) - this is the "switch".

Related video recommendations: PHP programming from entry to proficiency

The above is the detailed content of What file is .do. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn