facebook

JSP Code Completion Problem, Filename dependant

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #215148 Reply

    Thomas Weber
    Member

    Hello Support Team,

    this is a repost of the problem already discussed in

    https://www.genuitec.com/forums/topic/jsp-page-code-completion-problem/&highlight=

    There seams to be some oddness with JSP files which have a filename with non alphabetic symbols. In my case i have a score “-” in the jsp’s name.
    i.E. “somereport-general.jsp”, “somereport-details.jsp”.

    When i try to invoke the code completion, i get a red error message in eclipse’s status bar: “The public type Somereport must be defined in its own file”.

    Tanks in advance,


    Thomas Weber

    #215159 Reply

    Scott Anderson
    Participant

    Thomas,

    The problem is that the name you gave your JSP file is not valid for a Java classname. For example, you’ll notice that if you try to create a class named support-something.java that the wizard won’t let you. When the JSP system tries to validate and compile your code by turning it into a compilation unit, it cannot because the name isn’t valid for a Java class. As a result, you receive this error.

    However, we should still try to do something about it since it’s a valid JSP name. The above is a workaround to get you moving.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP Code Completion Problem, Filename dependant

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