Title: JSP Static Includes

Most useful foolw form of JSP modeling:

JSPPageTop.jsp
<%@ page import="java.io.*,
    java.util.*,
    java.text.*,
   ….
    org.w3c.dom" %>

// Other common methods and static fields


CommonJSP.jsp
<%@ include file="/JSPPageTop.jsp" %>

<%
List list = new ArrayList(); // Without import java.util.List and java.util.ArrayList, becose it defined in JSPPageTop.jsp.

%>

For CommonJSP.jsp IntelliJ not recognize imports in JSPPageTop.jsp and mean that List and ArrayList not imported (prompt for Alt+Enter).

Thanks.

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