History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-14360
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Michael Rush
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

'Optimize Imports' adds imports for parent jsps in included jsp

Created: 17 Aug 07 02:34   Updated: 17 Aug 07 13:23
Component/s: Code Analysis. Dependencies, J2EE.JSP

Environment: Mac OS X 10.4.10

Build: 7,126


 Description  « Hide
When performing optimize imports on a jsp that is included in another jsp using
<jsp:include>
the imports for the parent jsp are added to the included jsp.

For example, say you have the following jsp's

test1.jsp:

<%@ page import="java.util.ArrayList, java.util.List" %>
<%
List l = new ArrayList();
%>
<jsp:include page="test2.jsp"/>

test2.jsp

just plain text here

Performing optimize imports on test2.jsp adds

<%@ page import="java.util.ArrayList, java.util.List" %>
to test2.jsp



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.