facebook

[Closed] includes and page imports

💡
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 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #254291 Reply

    hello

    I have all my jsp page imports in a single file which is included in every of ~500 jsp Files. But MyEclipse doesnt resolve this and I have to do the page import in every jsp again to make code completion work. How can I tell myeclipse to take the includes into account? Any workaround? Any suggestion?

    acid

    #254319

    Riyad Kalla
    Member

    Acid,
    How are you including the page? MyEclipse *will* honor includes <% include file=”” %> for imports, this is how most programmers work. Are you working in a web project? What version of MyEclipse?

    #254420

    I use in my jsp’s the include as follows:

    <%@ include file="/include/javaimports.jsp" %>

    in this file are imports like:

    <%@ page import = "rhd.web.entity.*" %>

    in the jsp editor the code completion doesn’t work. The classes from the package rhd.web.entity are not recognized by the jsp editor. At runtime (Tomcat 5.5.17) the jsp’s do work.
    if I place the import directly into the jsp the jsp editor does recognize the classes from the package.

    MyEclipse Version is 4.1.1 GA, Eclipse Version is 3.1.0

    Thank you for your help!
    acid

    #254455

    Riyad Kalla
    Member

    Acid,
    Do you have the time to test your project with a clean install of Eclipse 3.2 GA and MyEclipse 5.0 Milestone 2 with a new workspace and importing your existing project?

    #254803

    I did so and it works now.
    Thank you!
    acid

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] includes and page imports

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