hi friend can you tell me how to create servlets and how we can deploy it on the apache web server.

Hi friend,
Get Netbeans 6.8. Create servlet from menu and write your code in processRequest then right click on your project and select deploy. That's it!

Hi friend,
Get Netbeans 6.8. Create servlet from menu and write your code in processRequest then right click on your project and select deploy. That's it!

Why NetBeans why not command line or any other IDE? And where is Tomcat/Glassfish/JBoss or any other web server/container?

Better solution get copy of Head First Servlet & JSP, 2nd edition and read it(here is link to Books Google limited preview)

Why NetBeans why not command line or any other IDE? And where is Tomcat/Glassfish/JBoss or any other web server/container?

Better solution get copy of Head First Servlet & JSP, 2nd edition and read it(here is link to Books Google limited preview)

Why command line? when you can develop the same thing in Netbeans or Eclipse within less time leading to more productivity rather than typing all command line ant thing and writing boilerplate web.xml.

Are there any advantages to writing command line thing? means the program will run faster or similar? This is 2010 and not beginning of century when people used to write web.xml and ant thing spending more time deploying rather than devloping. After each bug that you find you need to again deploy. Netbeans has auto deploy so you don't need to give exercise to your hand. Why not spend that useful time in learning something productive?

Regarding Glassfish, it comes with download only by default with Netbeans 6.8, so i need not mention it explicitly.

http://netbeans.org/downloads/index.html

And yes, Head first Jsp and Servlets are good books.

Why command line? when you can develop the same thing in Netbeans or Eclipse within less time leading to more productivity rather than typing all command line ant thing and writing boilerplate web.xml.

Because you have to actually learn to program rather than learn to click buttons in some IDE.
You'd be surprised to learn that in a professional environment deployment and creation of deployment artifacts is rarely if ever done from an IDE, because it's not repeatable and can't be automated.

And for the beginner the IDE hides way too much of what's actually happening for him to get a proper understanding of the language and platform, leading to questions like this and worse.

commented: Couldn't said that better myself +12
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.