Apache Tomcat executing a Java class?

Yes, you're right. You'd want to write a servlet that handles request to an URI. Here's some introduction.

Yes, you're right. You'd want to write a servlet that handles request to an URI. Here's some introduction: java.sun.com/developer/onlineTraining/Pr... Tomcat comes with some samples, you might look at the source code as a start, they should be in the webapps/sample directory.

The Tomcat documentation is also a good start. tomcat.apache.org/tomcat-6.0-doc.

I would check out this introduction to servlets A servlet receives an HTTP request (e.g. A request for a page etc. ). It will process that request via the methods doGet() or doPost(), and return an HTTP response. That response will contain your results (most likely an HTML page, although that's not mandatory).

I would (in order) get a static 'hello world' page going get a static page returning some data from your libraries get a dynamic page returning some data from your libraries using data from the HTTP request Integrating your library will be trivial, since a servlet is simply a Java class that can instantiate/call on any other Java class.

You will need to learn how to use Java in a web server. I would recommend using JSP just to start with as it allows you to create web pages that call Java code easily. There are many JSP tutorials on the net - I believe this one is suitable: jsptut.com.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions