Download the servlet 2.2 API from java.sun.com Everybody working with servlets and JSP should have this document available. The rules for where things go and how web.xml is configured are way too complex for posting. Bill
Where in this API does it tell me how to deploy? This is a Programmer's tool to help write servlets. It doesn't at all help me when I want to deploy my servlet.
The unfortunate (or fortunate?) thing about deploying "stuff", is that the actual deployment details are implementation details. In what folder you put class files so that a particular servlet runner can find them, is a detail that is left to the maker of that servlet runner. So everybody does it differently.
In a J2EE server, I think you'd need to bundle your servlet into a WAR file and deploy it as a web component, which would be part of a larger EAR component. This is going from the Reference Implementation, but perhaps other app servers allow just 'simple' servlets to be deployed, without the other stuff. But again, each server is probably different.
If you are using the reference implementation (the one that comes in the dowload of j2sdkee1.2.1), then I can help you with that case. Let me know.
Joined: May 14, 2001
Hi Mike Curwen, thanks for reply, Can you please brief little more on the reference implementation. What do you mean by it.But yes I am using J2SDKEE1.2.1 only. can you please help in this regard. regs, santosh
The download you got from sun for the j2sdkee1.2.1 contains not only the API and the jar files for creating J2EE apps, but it contains a 'Reference Implementation' (RI) for both the application server, and the deploy tool.
So instead of having to buy a product like iPlanet or WebLogic, you can use the free one included by Sun. There is also a GUI-based deployment tool included with the download.