One IDEA's problem

when I use Apache struts, I make a page "top.jsp",in which I declare follows:
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="yoshida" prefix="yoshi" %>

I want other jsp pages <%@include file="Top.jsp"%>,so I haven't to declare the taglibinfo in every page. which can be compiled and deployed successfully.but in IDEA Code Editor,other jsp pages which delare <%@include file="Top.jsp"%> can't use tag code autocomplete, because IDEA can't know the include page's info.

I think IDEA should make the <%@include...> as the function of import, So we can use the include page'info in our context. what can I do?

1 comment

Actually IDEA does what you need. You are excluding your output path. Therefore your IDEA can not find your included file.
Uncheck the "Exclude output paths" checkbox from the paths, then IDEA will see your included files and will auto-complete included tag libraries in the new jsp files.


Please sign in to leave a comment.