Title: JSP improving (JSP depends)

I'll be give +10 for follows (maybe somebody agree with me):

if I have WEB Application module. And the structure of this module is complex - one JSP compiled from many statical includes (small pices) JSPs. For example:

big.jsp:
<%@ include file="/includes/top.jsp" %>
<%@ include file="/includes/1.jsp" %>
<%@ include file="/includes/2.jsp" %>
<%@ include file="/includes/3.jsp" %>

This no troubles. Follow.
top.jsp:
<%@ page import="java.util.* %> <%-- For example --%>

And it's no troubles too. Troubles follow:
1.jsp:
<%
List list = new ArrayList(); // This hightlight as error
%>

2.jsp:
<%
list.add("Hi");  // This hightlight as error
list.add("Hello");  // This hightlight as error
list.add("Hey");  // This hightlight as error
%>

3.jsp

<%
SortedSet tree = new TreeSet(); // This hightlight as error
tree.addAll(list); // This hightlight as error
%>


Solutions in the custom database with user define relations via JSP. So I we define:
big.jsp - self by self
top.jsp - self by self
1.jsp - depends on top.jsp (this mean that IntelliJ must do include top.jsp but not show it)
2.jsp - depends on 1.jsp (this mean that IntelliJ must do include 1.jsp, then top.jsp  but not show these)
3.jsp - depends on 2.jsp (this mean that IntelliJ must do include 2.jsp, follow - 1.jsp, then top.jsp  but not show these)

Thanks for attention.

Alexey Efimov - Software Engineer
Sputnik Labs
1st Kolobovsky per., 6/3
Moscow, 103051, Russia
Phone: +7 (095) 725 5444
Direct: +7 (501) 401 3217
Fax: +7 (095) 725 5443
E-Mail: mailto:[EMAIL PROTECTED]
http://www.spklabs.com


Reply via email to