RE: How do I precompile JSP files for final Production use?

2001-01-23 Thread Hobson, Don

Michael,
I don't want to install the JDK onto the server either. It is too big. When
I install my app I will install Tomcat to use http as the transport
mechanism.

Is there a way around having to install the JDK at all?

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 7:03 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I precompile JSP files for final Production use?


 I don't want the files to be compiled at startup. I don't want them
 to ever have to be compiled once installed on the users machine.
 I want to compile them, package the .class files and ship my
 application.

 Has anyone tried this with success? I don't want to install the JDK on
 the users machine, as I assume I will have to. Just the JVM.

You wouldn't have to install the JDK(or the JVM for that matter, unless you
are running applets as well as servlets) on every users machine only the
server
that is running tomcat.  The way JSP works is it is a server side technology
(hence the Server in Java Server Pages).  The servlet, or jsp, is run
on the server and the HTML/XML/WML/... that is generated is then streamed
down to the user who made the request.  The compilation would only
occur at server startup not at client startup.  This would be relatively
transparent to all users(might cause a slight bubble of time at server
startup but it wouldn't be too significant and it would only be once).


---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: How do I precompile JSP files for final Production use?

2001-01-22 Thread Hobson, Don

I don't want the files to be compiled at startup. I don't want them
to ever have to be compiled once installed on the users machine.
I want to compile them, package the .class files and ship my application.

Has anyone tried this with success? I don't want to install the JDK on
the users machine, as I assume I will have to. Just the JVM.

-Don

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 6:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I precompile JSP files for final Production use?


Another way to do this is write a servlet that will make a
request to all jsp's in your webapp at startup.  This takes
care of the class name translations and such.

---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Syntax and Performance

2001-01-22 Thread Hobson, Don



Is there any reason that I should not do
this:
%! String
hostname;%% hostname =
request.getParameter("Host");
%
Does the compilerhave to do any extra work?
Should I combine them?


How do I precompile JSP files for final Production use?

2001-01-20 Thread Hobson, Don

When I ship or deploy my app, I do not intend
to install the JDK on the users machine. I understand
that I can precompile all of the JSP files to .class
files and this will work. Can someone explain this
process?

If I call:
FORM action="login.jsp" method="post"

but I only have the precompiled login.class file
in the WEB-INF/classes directory (I assume, or should it
be placed in the directory that the original login.jsp was in)
will the correct file be called?

Thanks,

Don

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]