This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I always suggest that beginners start with the examples provided with the Tomcat distribution and modify them. Much easier to learn from your mistakes by starting with working code and make mistakes that break it than try from scratch.
i mean creating new folder such as web-inf, src,test etc if its done how to compile serverside and client side is by by using
Author and all-around good cowpoke
Joined: Mar 22, 2000
I cant make any sense out of that. Code for servlets is compiled just like any other Java code. Like I said, study the examples provided, including the web.xml files and the way the examples directory is laid out.
If you're writing a webapp there's no compiling on the client side.
I'm still not sure what you're trying to do: you can write a web.xml by hand (easily), write a servlet, create a WAR file, and deploy it all by hand really easily. Are there specific steps you're having a problem with?
with netbeans ,yes i am specific by steps, but manually like creating folders i am not..Even if i create folder and all class files and all
what shhould be the 1st thing to compile servlets or model or view,controller and how to set the class path manually for the servlets ,model,controller
Also i have no idea about XML ..just know thaat they are reffered as deployment descriptor from where to learn XML and whatever folders i created how to put it on a server side (by the way i am trying on the same local machine)
There's also a section provided on how to organize project source for building with the ANT tool. Because of the multitude of different tasks it takes to build a WAR, I recommend you use a command-line build tool like Ant or Maven. Back before they were invented I used scripts and it wasn't much fun.
I make it a firm policy that ALL my projects can be built from the command without an IDE. While an IDE is a helpful thing to have, you shouldn't have to depend on it to make critical production builds. I learned this the hard way from IDEs that had become incompatible and from projects that people sent me that could only build if I had the exact same brand and version IDE as they did and had configured a lot of desktop-level items the exact same way they had. On top of that, one place I worked did production builds on a non-GUI machine. Where an IDE wouldn't work at all!
Customer surveys are for companies who didn't pay proper attention to begin with.
If you are trying to understand how the servlets work, I would highly recommend the Head First Servets and JSP. I have been working with that and it has explained how to set-up all the files manually, creating the XML files and a good explanation of how the container works.