I am trying to include 2 JSP files in my JSP page. My main page is called temp.jsp - this is in a subfolder in my web project called tempFolder. I am trying to include a file in the main project folder (called invalidcqs.jsp) and a file (called env_status_report.jsp) in a sub folder (envmon) of the main project folder.
the code in my temp.jsp file is:
<html>
<head>
<title>Screen1 using includes</title>
<meta http-equiv="refresh" content="10"/>
</head>
<body style="background-color:#E6E6FA">
<%@ include file="../envmon/env_status_report.jsp" %>
<br><hr><br>
<%@ include file="../invalidcqs.jsp" %>
</body>
</html
The second include <%@ include file="../invalidcqs.jsp" %>
works fine but the first one <%@ include file="/../envmon/env_status_report.jsp" %>
shows an error in Eclipse.
The text of the error is:
Multiple annotations found at this line: - Syntax error on token "else", delete this token - Syntax error, insert "Finally" to complete TryStatement - Syntax error on token "else", delete this token
Does anyone know why Eclipse doesn't like this?