2

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?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
tt0686
  • 1,771
  • 6
  • 31
  • 60
  • If extension is not jsp then consider that page as **static** resource. If that resource is dynamic then it acts on a request and sends back a result. – KV Prajapati Jan 09 '12 at 13:56

1 Answers1

6

.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.

Ernest Friedman-Hill
  • 80,601
  • 10
  • 150
  • 186