2 Replies Latest reply on Jan 16, 2004 1:41 AM by fkclai

    JSP Precompiling, Naming convention

    malesch

      hi

      i want to precompile my JSP and created (as suggested
      in various mailing) an ant file (using the JSPC task or
      invoking directly org.apache.jasper.Jspc).

      Everything works and I get my java sources from the JSP
      which I also can compile...

      However...the naming is wrong. For example my Login.jsp
      gets to Login.java and finally Login.class....but what
      JBoss wants is ...Login$jsp.class (Login$.jsp.java)!

      Any help greatly appreciated!

        • 1. Re: JSP Precompiling, Naming convention
          vineetb

          If you get ant task to work right your really lucky.

          I tried for atleast a dozen times and kept on getting NullPointer exceptions.

          The best way to precompile jsp's is by invoking

          http://localhost/test.jsp?jsp_precompile

          I wrote a quick and dirty program to do this. Works like a charm. But ugly thing is that someone has to run this manually after deploying the war file.

          - vineet

          • 2. Re: JSP Precompiling, Naming convention
            fkclai

            hi malesch

            I also facing the same problem.
            I have succesed to precompile the jsp into java and compile it into class.
            Then I jar it to a war file and deploy in C:\jboss-3.0.1_tomcat-4.0.4\server\default\deploy

            BUT, Jboss can't find my precompile jsp

            is it the naming problem or any I need to set????????

            Malesch, have you find the solution ?

            Thanks,
            Calvin Lai