facebook

JSP debugging dumb question

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #197401 Reply

    llkkii
    Member

    not to ask a dumb question, but I thought the errors in a JSP page where supposed to be displayed in the tasks list?
    What am I doing wrong?

    #197405 Reply

    Scott Anderson
    Participant

    They should be marked in editor itself and in the task list.

    What am I doing wrong?

    Two things come to mind. Perhaps you’ve turned off JSP compilation: see the JSP editor’s Syntax page. Or, this happens to me a lot, you’ve set a filter on the tasks list that also excludes problem markers from your JSP files.

    –Scott
    MyEclipse Support

    #197409 Reply

    llkkii
    Member

    No I think its something simpler than that, Does the project have to be a web project for it to work?
    The tasks should be populated when you hit build right?

    #197410 Reply

    llkkii
    Member

    No I think its something simpler than that, Does the project have to be a web project for it to work?
    The tasks should be populated when you hit build right?

    #197417 Reply

    Scott Anderson
    Participant

    Does the project have to be a web project for it to work?

    Yes, it does. And only JSP’s under the configured web root will be compiled.

    The tasks should be populated when you hit build right?

    If there are compilation errors. The lines in the file should also be marked. When you build, you should see status lines in the progress monitor that show you the JSP’s that are being compiled.

    –Scott
    MyEclipse Support

    #197421 Reply

    llkkii
    Member

    I tried creating a web project but it didn’t seem to like our directory structure. We have:
    com/abc/def/ghi/
    com/abc/zyx/ghi/
    com/abc/pqr/ghi/
    com/abc/web/web-inf/
    com/abc/web/jsp/
    com/abc/web/web-inf/lib/
    com/abc/web/servlet/

    if you see what I mean, what I am trying to say is that the java class files are not under com/abc/web/web-inf/classes/ which is what the web project seems to want i.e.
    com/abc/web/web-inf/classes/com/abc/def/ghi/
    com/abc/web/web-inf/classes/com/abc/zyx/ghi/

    #197423 Reply

    Scott Anderson
    Participant

    As long as your Java classes are in a Java src folder with their output directory set to web-inf/classes you should be fine. To be more specific:
    src:
    com/abc/def/ghi/
    com/abc/zyx/ghi/
    com/abc/pqr/ghi/
    com/abc/web/servlet/

    Outside of the Java source folder you need a web root to contain all your web content, which are all non-java files. Your ‘web’ directory is exactly that, but I’d bring it out to the top level of the project, although you don’t have to.

    if you see what I mean, what I am trying to say is that the java class files are not under com/abc/web/web-inf/classes/ which is what the web project seems to want

    Yes, the compiled files need to be in the WEB-INF/classes directory because that’s where they need to be for deployment to function. Again, this is easily done by configuring the output path of your Java source directory.

    But, as you stated, your project won’t work exactly as it is now. Unfortunately, in order to automate deployment we’ve had to standardize the project layout to some extent, and we modeled that after the war specification.

    –Scott
    MyEclipse Support

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JSP debugging dumb question

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