is this a speed issue?

if so, use jikes. it's so fast that you don't need to precompile JSPs.



----- Original Message -----
From: "Lachezar Dobrev" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, October 13, 2001 1:50 AM
Subject: JSP Compilation Questions and More.


>    Hallo all!
>
>    Recently I've been playing around with JSP compilation in Orion. I saw
a
> couple of days ago a question about the out-of-the-server (stand-alone)
> compilation of JSPs. Quite some job :(
>    I tried to find the compilator. Playing around I got some things. I
don't
> really remember what was the JSP that helped me, but I guess it is either
> com.evermind._rj (and it's method _bb() ) or com.evermind._ah. Also the
> com.evermind.....JspPage has a _bb() method, but it doesn't help a lot.
>
>    Question 1: Is there a way to pre-compile the JSPs? I also saw that
> adding a parameter "jsp_precompile=true" to the request parameters will
only
> try to compile the jsp. That however is not what I was thinking about.
>
>    Question(BUG) 2: I noticed the following: It depends how the JSPs are
> compiled. If the Web-App is "development=true" it is compiled in one way
> with matching the JSP lines, and if "development=false" the lines are
often
> mapped wrongly. Exa.:
>
> ALABALA.JSP:
>
> 1. <html>
> 2. <head>
> 3. <title>Test for test</title>
> 4. </head>
> 5. <body>
> 6. <form method="GET">
> 7. <input name="TEST_BEAN" type="text" size="20" value="Test"><br>
> 8. <input type="submit"><%= new String((String)null)%>
> 9. </form>
> 10.</body>
>
> Obviously there is a NullPointerException on line 8 (7 if counted from 0).
>
> development = true:
>
> 500 Internal Server Error
> java.lang.NullPointerException
>  at java.lang.String.<init>(String.java:193)
>  at /Alabala.jsp._jspService(/Alabala.jsp.java:24) (JSP page line 7)
>  at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)
>  ..........................................
>
>
> development = false:
>
> 500 Internal Server Error
> java.lang.NullPointerException
>  at java.lang.String.<init>(String.java:193)
>  at /Alabala.jsp._jspService(/Alabala.jsp.java:27) (JSP page line 2)
>  at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)
>  ..........................................
>
>
>    Obviously both cases differ. Why?
>
>    Lachezar.
>
>
>
>


Reply via email to