facebook

pre compiling JSP

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222172 Reply

    asafbu
    Member

    Hi,

    Is there a way I can set pre-compile JSP option to true?

    Thanks

    #222191 Reply

    Scott Anderson
    Participant

    While we do compile JSPs to validate them, we can’t directly deploy precompiled JSPs since each application server generates their code in a completely different way. However, some application servers allow you set a precompile option in their server-specific deployment descriptors, but you’ll have to check your server documentation for that.

    #225285 Reply

    For weblogic you can take advantage of pre-compiled files by adding the following to your web.xml file:
    ==============================================
    <servlet>
    <servlet-name>JSPClassServlet</servlet-name>
    <servlet-class>weblogic.servlet.JSPClassServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>JSPClassServlet</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping
    ==============================================

    The precompiled jsp class files need to be put in:
    WEB-INF\classes\jsp_servlet\folder

    The problem is how do we set up MyEclipse to put the precompiled files in this directory?

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: pre compiling JSP

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