> In our HEADER.JSP we have some code which redirects to an error page, but
> only if a certain local variable is set to a redirect URL. If the variable
> is null or "", no error redirect happens.
> Of course, then all pages that includer HEADER.JSP have to declare that
> variable and set it to the correct value, otherwise the page won't
compile:
>
> <%
> String errorTarget = null;
> if (some_error_condition)
>     errorTarget = "someErrorURL.jsp";
> <%@ include "HEADER.JSP" %>
> ...etc...
>

As an alternative, you might consider using a Java helper class or custom
tag to handle this type of thing. Or perhaps you could pass the variable in
via the page or session contexts, or use dynamic jsp:include with embedded
jsp:param tags.  All of these solutions allow IDEA to parse your source
correctly, and most make the dependencies a lot more obvious to someone
reading your code.

-Walter Mundt



_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to