File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Role of files with extension .inc Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Role of files with extension .inc" Watch "Role of files with extension .inc" New topic
Author

Role of files with extension .inc

Ram Chhabra
Ranch Hand

Joined: Jan 07, 2008
Posts: 48
Hi,

Can you please tell me that what's the role of files which are having extension as .inc

Thanks,
Ram
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35440
    
    9
Often those are file/page fragments that are to be included in other files/pages, but it could mean any number of things, really. Where did you see them, and what did you notice about how they're used?
[ October 09, 2008: Message edited by: Ulf Dittmer ]

Android appsImageJ pluginsJava web charts
Ram Chhabra
Ranch Hand

Joined: Jan 07, 2008
Posts: 48
Thanks for your response sir.

I have seen this in an JSP file
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12952
    
    3

The official extension for files to be included in other JSP files is .jspf (which means JSP fragment).

We previously named our included files ".inc", but it didn't work well, because the IDE didn't automatically recognise those as JSP files, so syntax highlighting would not work on those files. We renamed the files to ".jspf" and now it works as it should.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

I mostly use .inc.php or .inc.asp for my PHP / ASP pages (otherwise it's _inc.php), just to make sure that a browser will not display them as plain text.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Role of files with extension .inc
 
Similar Threads
tagf
Doubt with ++ operator
eclipse ???
need help with zip extraction
JSP - Compile errors because of includes