facebook

How do I precompile my JSPs?

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

    Dean Schulze
    Member

    Does 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

    #199767 Reply

    Scott Anderson
    Participant

    Dean,

    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

    #199785 Reply

    Dean Schulze
    Member

    This 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?

    #199787 Reply

    Scott Anderson
    Participant

    <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

    #199888 Reply

    Dean Schulze
    Member

    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.

    Anyone have any pointers to a tool that will check for errors of this type – method calls via reflection?

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How do I precompile my JSPs?

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