servlets: automatic compilation: is it possible?

2003-10-27 Thread Neil Zanella

Hello,

I am currently using Tomcat 4.1.27. When I want to deploy a web 
application I have to recompile the servlet (.java file) and
place the produced class file (bytecode) under the WEB-INF/classes
directory. Now, with JSP when you have a .jsp file the it all
happens automatically: you don't have to manually produce and
place any class files anywhere. Can I do the same with Java
servlets: just tell the server where my .java servlet is
and let the server automatically compile it? That would
be a desirable feature for Tomcat. Is it currently
possible?

Thanks,

Neil


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



Re: servlets: automatic compilation: is it possible?

2003-10-27 Thread Tim Funk
Its possible - but not with the existing tomcat functionality.

-Tim

Neil Zanella wrote:
Hello,

I am currently using Tomcat 4.1.27. When I want to deploy a web 
application I have to recompile the servlet (.java file) and
place the produced class file (bytecode) under the WEB-INF/classes
directory. Now, with JSP when you have a .jsp file the it all
happens automatically: you don't have to manually produce and
place any class files anywhere. Can I do the same with Java
servlets: just tell the server where my .java servlet is
and let the server automatically compile it? That would
be a desirable feature for Tomcat. Is it currently
possible?


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


Re: servlets: automatic compilation: is it possible?

2003-10-27 Thread Christopher Schultz
Neil,

When I want to deploy a web 
application I have to recompile the servlet (.java file) and
place the produced class file (bytecode) under the WEB-INF/classes
directory. Now, with JSP when you have a .jsp file the it all
happens automatically: you don't have to manually produce and
place any class files anywhere. Can I do the same with Java
servlets: just tell the server where my .java servlet is
and let the server automatically compile it?
I don't believe there's currently a component out there to do this. 
Tomcat certainly does not ship with one.

You could write your own servlet to do this, but you'd have to make sure 
that you compiled *it* before trying to use it :)

It would basically use the same techniques as the JSP 
translator/compiler servlet do detect changes to the source code and to 
a recompile. I'm not sure how they to class reloading, so you'd have to 
snoop their source code.

-chris

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