{"id":230,"date":"2003-01-23T00:25:56","date_gmt":"2003-01-23T04:25:56","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=230"},"modified":"2003-01-23T00:25:56","modified_gmt":"2003-01-23T04:25:56","slug":"jsp-precompilation","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/01\/23\/jsp-precompilation\/","title":{"rendered":"JSP Precompilation"},"content":{"rendered":"<p>More from the JSP Spec:<\/p>\n<p>&#8220;A request to a JSP page that has a request parameter with name &#8220;jsp_precompile&#8221; is a precompilation request . The &#8220;jsp_precompile&#8221; parameter may have no value, or may have values &#8220;true&#8221; or &#8220;false&#8221;. In all cases, the request should not be delivered to the JSP page. The intention of the precompilation request is that of a suggestion to the JSP container to precompile the JSP page into its JSP page implementation class. The suggestion is conveyed by giving the parameter the value &#8220;true&#8221; or no value, but note that the request can be ignored.<\/p>\n<p>For example:<br \/>\n1. ?jsp_precompile<br \/>\n2. ?jsp_precompile=&#8221;true&#8221;<br \/>\n3. ?jsp_precompile=&#8221;false&#8221;<br \/>\n4. ?foobar=&#8221;foobaz&#8221;&amp;jsp_precompile=&#8221;true&#8221;<br \/>\n5. ?foobar=&#8221;foobaz&#8221;&amp;jsp_precompile=&#8221;false&#8221;<\/p>\n<p>1, 2 and 4 are legal; the request will not be delivered to the page. 3 and 5 are legal; the request will not be delivered to the page.<\/p>\n<p>6. ?jsp_precompile=&#8221;foo&#8221;<\/p>\n<p>This is illegal and will generate an HTTP error; 500 (Server error).&#8221;<\/p>\n<p>So does anyone have utilities for automating this upon deployment of an application?  Nice&#8230; <a href=\"http:\/\/otn.oracle.com\/oramag\/oracle\/03-jan\/o13ant.html\">apparently<\/a> <a href=\"http:\/\/jakarta.apache.org\/ant\/\">Ant<\/a> has a <a href=\"http:\/\/jakarta.apache.org\/ant\/manual\/OptionalTasks\/jspc.html\">task<\/a> built in to do this very thing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>More from the JSP Spec: &#8220;A request to a JSP page that has a request parameter with name &#8220;jsp_precompile&#8221; is a precompilation request . The &#8220;jsp_precompile&#8221; parameter may have no value, or may have values &#8220;true&#8221; or &#8220;false&#8221;. In all cases, the request should not be delivered to the JSP page. The intention of the &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/01\/23\/jsp-precompilation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">JSP Precompilation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/230"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}