facebook

JSP auto import doesn’t seem to work with all classes

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

    Steve Prior
    Member

    I’ve been trying to figure out how the auto import works in JSP editing in the MyEclipse perspective and
    have noticed that some classes will auto-import and some won’t. I was able to auto-import BigDecimal just fine, but some of my classes won’t. I have a JacORB generated class named “ChatHelper” (a helper object for my Chat class) – if my current project imports this ChatHelper class from a jar file it doesn’t seem to generate the import automatically even though the class name comes up with Ctrl-Space. However, if instead of importing it from the jar file I have a project dependancy on the project that generated the jar file, then it seems to work.

    Is there any known flakiness in the auto-import function of the JSP editor? I’m using the 4.0.100 M1 release of MyEclipse. After getting completely hooked on auto-import in editing regular Java classes I’d love to get it rock solid in JSP editing as well.

    #243825 Reply

    Kapil Kapre
    Member

    I added a jar to the build path of the project and imported its classes into the JSP and that worked out fine w/ proper import statements being generated.
    Could you download 4.1M2 and see if it works for you?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP auto import doesn’t seem to work with all classes

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