facebook

JSP question

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #265288 Reply

    jleming
    Member

    We have a very large codebase with the following basic structure:

    a.jsp {
    define variables a,b,c,d,e
    include b.jsp
    include c.jsp
    }

    b.jsp & c.jsp {
    use variables a,b,c,d,e … repeatedly
    }

    The result is that if I look at b or c in the editor, that about 50% of the file is underlined in red… Is there any way around this other than doing a request.setAttribute / request.getAttribute? Is there a comment that you can put in a jsp file to indicate that its parent is a.jsp?

    ie: <%@page parent=”/a.jsp” %>

    Thanks

    #265289

    jleming
    Member

    Looking around, I see a lot of similar posts — all with the response that this is not a compiler error if it is in the right margin — but in this case, I think it would be a compiler error, as the page b.jsp will not compile alone, but only as an include — there should be a way to specify the parent of a page, if for no other purpose but to remove all those red quiggles…

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP question

You must be logged in to post in the forum log in