public void precompileFile(File file) {
try {
URL precompileURL = new URL(rootURL,
file.getName()+"?jsp_precompile=true");
HttpURLConnection conn = (HttpURLConnection)
precompileURL.openConnection();
int responseCode = conn.getResponseCode();
}catch (Exception exc) {
System.out.println("Exception: "+exc.toString()+" for
"+startDir+file.getName());
}
}
----- Original Message -----
From: "Atanas Michev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 11:17 AM
Subject: precompiling JSP
> Hi,
> I would appreciate if someone can tell me how to:
> - precompile a JSP file step by step
> - precompile more than one JSP file in one Servlet in order to make faster
> their approaching when calling them for the first time.
>
> Many thanks in advance
> Atanas
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>