- This topic has 6 replies, 2 voices, and was last updated 21 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
llkkiiMembernot 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?
Scott AndersonParticipantThey 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
llkkiiMemberNo 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?
llkkiiMemberNo 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?
Scott AndersonParticipantDoes 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
llkkiiMemberI 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/
Scott AndersonParticipantAs 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 -
AuthorPosts