- This topic has 4 replies, 2 voices, and was last updated 21 years ago by Dean Schulze.
-
AuthorPosts
-
Dean SchulzeMemberDoes MyEclipse provide a way to precompile the JSPs in my project? The precompiler provided with my AppServer (Oracle 9iAS 9.0.3) is broken and it would be great if there was something in MyEclipse that I can use.
I don’t need to worry about packaging precompiled JSPs. I just want to check for syntax problems.
Thanks.
Dean
Scott AndersonParticipantDean,
I don’t need to worry about packaging precompiled JSPs. I just want to check for syntax problems.
MyEclipse compiles JSP’s when you modify them by default and will mark problems with the standard red error markers. You can enable/disable JSP compilation on the MyEclipse JSP editor preference page.
–Scott
MyEclipse Support
Dean SchulzeMemberThis feature isn’t working then.
I have the compile JSP option turned on, but if I change the property in the following statement to “status_” (which doesn’t exist in the bean) I don’t get an error:
<bean:write name=”claim” property=”status” />
change to
<bean:write name=”claim” property=”status_” />
Precompilation should show the error.
If MyEclipse does pre-compilation what does it do with the generated .java and .class files?
Scott AndersonParticipant<bean:write name=”claim” property=”status” />
change to
<bean:write name=”claim” property=”status_” />
Precompilation should show the error.Actually, since the call to getStatus will be done at runtime via reflection, it’s a type of error that compiling the JSP cannot show. This, of course, is true with all uses of reflection, not just this one.
If MyEclipse does pre-compilation what does it do with the generated .java and .class files?
It writes them to a temp directory and immediately removes them upon completion of the compilation.
–Scott
MyEclipse Support
Dean SchulzeMemberActually, since the call to getStatus will be done at runtime via reflection, it’s a type of error that compiling the JSP cannot show. This, of course, is true with all uses of reflection, not just this one.
Anyone have any pointers to a tool that will check for errors of this type – method calls via reflection?
-
AuthorPosts