71

Just wondering which programming languages is used on the web pages with the extension ".do"

Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
Roman
  • 775
  • 1
  • 6
  • 8

4 Answers4

75

According to FileInfo, the file extension is for Java Servlets.

Sebastián Palma
  • 32,692
  • 6
  • 40
  • 59
Merlyn Morgan-Graham
  • 58,163
  • 16
  • 128
  • 183
38

Strictly speaking, you can't tell for sure just by looking at the extension. I can configure a web server to interpret *.do URLs as referring to PHP files or even executables and run it accordingly. In fact, *.do URLs may not even refer to files at all! It really does depend on how the server is configured.

In silico
  • 51,091
  • 10
  • 150
  • 143
  • 2
    @Kobi Actually that's just a url re-write where they add text from the question (“which-programming-language-has-extension-do”) after the question id (`5973505`). You'll notice it redirects to the full url – Josh K Oct 29 '13 at 01:16
  • 35
    While true, this answer is more pedantic than useful. As Femi points out, in practice, this extension does indicate a particular web stack. – Kirk Woll Nov 01 '13 at 07:36
  • 9
    @Kirk Woll: Sure. That's why I said "strictly speaking". And even if it is pedantic, it is *correct*. IMO correctness is just as important as knowing what is usually done in practice. – In silico Nov 03 '13 at 01:21
  • 12
    Like Kirk said, this answer is pedantic. Sure, you ***can*** change how various extensions are handled, but the OP was asking which languages use `.do` extensions, implying the OP wanted to know which languages use `.do` files by default. If someone asked what languages use `.php` files, the practical answer is PHP. Yes, you ***could*** configure your server to execute `.php` files as Perl or something unrelated like that, but by default, in general, and most often in practice, `.php` refers to PHP files. That same basic principle can be applied here. – Spencer D Oct 23 '15 at 17:15
  • 2
    This is a 100% universal truth about file extensions in general. I fail to see how it in any way relates to this specific file extension. Perhaps it's useful to note this extension resides only inside web-servers and this answer does mention web-servers. That's the only possible relevance I can find. – ebyrob Mar 15 '17 at 20:33
  • 3
    This belongs as an addendum to a proper answer, not as an answer by itself. It imparts no useful information to someone looking for guidance, no matter how correct it might be. – Mark Ransom Jun 16 '17 at 22:25
26

That is typically not so much a programming language feature but a framework feature: apps developed with Apache Struts (see http://struts.apache.org/) typically use that extension.

Femi
  • 64,273
  • 8
  • 118
  • 148
8

.do extension is used to build a J2EE enterprise application using Struts and dao factory method that is latest technology framework to build EE applications. It is much faster and efficient than JSP and JSF.

Ed de Almeida
  • 3,675
  • 4
  • 25
  • 57
Usman
  • 81
  • 1
  • 1