I am writing some jsp, and I wonder if it would be better to have one large include file that I would include with each page or several smaller ones that I would include only on certain pages as needed.On any given page, you only need to call a few methods (<5). If I use one file, it will be more than 2500 lines of code.My main concern would be performance with a secondary maintenance concern.We use the jsp include directive. <%@ include file="FileToInclude" %>Edit: I will do the same for asp pages.
<%@ include file="FileToInclude" %>
, JSP, . , JSP, .
JSP - .
, out JSP, . , Java, JSP, JAR :
JSP . - JSP , Java. , Model-View-Controller. .
Java? .
, , , .
ASP - ,
//, , include , -
ASP include, ... 5 . , ( ), , .
Source: https://habr.com/ru/post/1707066/More articles:What are the pros and cons of using www? - subdomainЗагрузка ClickOnce завершается с ошибкой, если у конечного пользователя нет VS2008 - .netGeneral way to search or create an object in LINQ to SQL? - c #ClickOnce Deployment Error in Updated .NET Application - .netDataBindings.Add с использованием IFormatProvider - c#Using MSBuild to copy a website in Production, while REALLY skips immutable files - asp.netRPC_E_SERVERFAULT when automating Microsoft Word - c #JPG, DOC, PDF files, etc. Also compiled into assembly? - c #What do you call this user interface management? - user-interfaceHow to get Subversion to work with automatically generated files? - svnAll Articles