tt0686
tt0686

Reputation: 1849

In a lot of JSP/Servlet app examples, why is the .inc extension used instead of .jsp for include?

In a lot of JSP/Servlet app examples that I saw, when the app includes a resource in a JSP through the directive or action include, then the file included had an .inc extension. Why is that? Why we do not use a .jsp extension instead?

Upvotes: 2

Views: 776

Answers (1)

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81724

.inc is short for include. A jsp extension would imply that the file was a complete page; using an inc extension makes it clear that the file isn't intended to stand alone.

Upvotes: 6

Related Questions