java left logo
java middle logo
java right logo
 

Home arrow Java Tutorials arrow Introduction to Servlet Listener using Eclipse
 
 
Main Menu
Home
Java Tutorials
Book Reviews
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Java Network
Java Forums
Java Blog




Most Visited Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews
Top Rated Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews


Statistics
Registered Users: 3946
Java SE Tips: 614
Java ME Tips: 202
Java EE Tips: 183
Other API Tips: 779
Java Applications: 298
Java Libraries: 209
Java Games: 16
Book Reviews:
 
 
 
Introduction to Servlet Listener using Eclipse E-mail
User Rating: / 256
PoorBest 

For our tutorial’s sample, I am going to name my Dynamic Web Project as ListenerWebApp. There is an interesting point worth to be looked at in this wizard. You need to provide the Target Runtime. What does it mean? Well, it basically requests you to identify the server that you would like to use for this Dynamic Web Project; in this case, Apache Tomcat. You may try to click on the combo box to observe whether you have any existing server(s) or not. If not, you may need to create one server for your project. For this tutorial, as you should have read the previous tutorials about Java Servlet, I am going to show you that we are not going to define any server as we are going to start and shutdown Tomcat manually. Starting and shutting down Tomcat manually has few advantages as we are not dependent on the IDE.

Your screen should look like below. Do not enter anything in the Target runtime and press next button.


Image

Next wizard is shown. We can ignore them and keep them as default. Press Next button. For your information, in this wizard, Eclipse is telling you that our web application is using Servlet 2.4 version as well as using Java 5.0. If you carefully read the tutorial, I mentioned that the Listener is available for Servlet 2.3 and above so if you see the version of your Servlet in your Eclipse is less than 2.3, you may have some problems in this tutorial. In short word, you are not using the latest technology.


Image

Now, we are in the last step of our Dynamic Web Project configuration. For this wizard, you should not modify the Context Root albeit you are allowed to do so as to understand the concept of context root may be puzzling. You can leave them as default and when you are more familiar with J2EE area, you may try to play around with it.

You can amend the Content Directory with any name that you wish. Normally, J2EE Developers will name it the same as the Project Name to increase the maintainability of the project. For this tutorial, we are not going to change it and we are going to keep it as default - WebContent. For your information, this directory is the place where all the deployment descriptor, JSP files, other configuration files are located. Press Finish button and we have completed our Dynamic Web Project configuration.


Image

You should be able to see something like below illustration. Yeah, in below illustrations, I have around 7 web applications in my Eclipse.


Image


 
< Prev   Next >

Page 1 of 0 ( 0 comments )

You can share your information about this topic using the form below!

Please do not post your questions with this form! Thanks.


Name (required)


E-Mail (required)

Your email will not be displayed on the site - only to our administrator
Homepage(optional)



Comment Enable HTML code : Yes No



 
       
         
     
 
 
 
   
 
 
java bottom left
java bottom middle
java bottom right
RSS 0.91 FeedRSS 1.0 FeedRSS 2.0 FeedATOM FeedOPML Feed

Home - About Us - Privacy Policy
Copyright 2005 - 2008 www.java-tips.org
Java is a trademark of Sun Microsystems, Inc.