Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What file does .do refer to?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what the .do refers to. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

.do is a file: 1, the web page file with the extension do is written in java language; 2, [.do] is generally a mapping of servlet; 3, [.do] is a url mode configured in the configuration file; 4, do file is a web daemon; 5, when developing web applications, there is a deployment description file that must be written.

1) the web page file with the extension of do is written in java language and is framed by Struts; its running environment is tomcat,weblogic, etc.

The database used is oracle,mysql,mssql,access and so on. The web daemon is a component file of * .jsp or struts * .do

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

Action*.do

It means that requests for .do are handed over to a servlet called action. According to the difference in the front of .do, action is handing over to the corresponding

Action class,... .do format!

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

* .do is a mapping of action.

When your submitted url address ends with .do, submit it to the action you configured in the configuration file for processing!

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

The important thing is that the url mode you configure must be the same as the url mode you submitted! Only in this way can the data be submitted for processing in the corresponding action.

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

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

This file describes the configuration of your web application, including the welcome page (welcome pages) (appears in the directory when the request is not specified

The mapping of the file under), servlet (path or extension), and those parameters of servlets.

In this file, you configure struts actionservlet as an object that manipulates all requests for the specified mapping (usually with a .do extension)

Servlet--, this is the switch.

This is the end of the article on "what does .do refer to". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report