0

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

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by jwenting
-1

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!

0

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)

-1

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.

1

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.

Votes + Comments
Couldn't said that better myself
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.