JSP file names include a directive to avoid compiling them

I join a project where code duplication in JSP is eliminated with the JSP include directive (static, for example #include in C).

Incoming files follow the same naming conventions as regular JSP: *. jsp

I am worried about that. Do they need a different file extension to prevent them from being compiled using the servlet container (are they just part of the read JSP pages)?

Or does the servlet container not touch files if they are not requested?

If I need to use a different file extension, how to work with the IDE. I do not want to miss the syntax highlighting and its completion. This is easy to get around with Emacs, but I don’t know how to register a file type based on the file extension in the case of NetBeans.

I am not a JSP expert, so I read the "JSR 267: JSP Tag Library" section in the "JSP.1.10.3 Include Directive" section, but did not find how to solve my question.

+2
java jsp jboss
Nov 01
source share
1 answer

The appropriate name for such JSP files is .jspf (a JSP snippet), as described in this question .

+4
Nov 01 '12 at 22:30
source share



All Articles