Looking for a Tutor Near You?

Post Learning Requirement » x
Ask a Question
x

Choose Country Code

x

Direction

x

Ask a Question

x

Hire a Tutor

How To Setup A J2EE Web Application.

Published in: Java And J2EE
1,843 Views

If you are new in J2EE web application development you should follow this steps to develop web application.

Mr S / Kolkata

6 years of teaching experience

Qualification: B.Tech and 6+ years of experience of MNC IT Company.

Teaches: Computer, Electronics, IT, CSS Training, HTML Training, Web Development, Java And J2EE

Contact this Tutor
  1. How to Develop a J2EE application New in J2EE application development? One should follow these steps. Copy right to Supriya Mallick
  2. 1. 2. 3. Getting started To develop a J2EE web application minimum we need.. JDK (JDI< 1.7) Web server (Tomcat 6.0) Download from https://tomcat.apache.org/download-60.cgi IDE (Eclipse Luna for JAVA EE developer) Download from http://www.eclipse.org/downloads/packages/eclipse-ide- java-ee-developers/lunasr2 Copy right to Supriya Mallick
  3. ' 1st install JDK Open eclipse and run it. Create a server instance of tomcat. Create a Dynamic Web Project. Enter Project name and select target runtime of server. Copy right to Supriya Mallick
  4. New Dynamic Web Project Dynamic Web Project Create a standalone Dynamic Web project or add it to a new or existing Enterprise Application, Project name: TestWebÃ…pp Project contents: [Z] Use default Directory Target Runtime Apache Tomcat v6,fl Dynamic Web Module version 25 Configuration Default Configuration for Apache Tomcat v6v0 Browse Newer, Modify... A good starting point for working with Apache Tomcat v6ECl runtime, Additional facets can later be Installed to add new functionality to the project, EAR Membership Add project to an EAR EAR Project Blame: EAR Back Copy right to Supriya Mallick 4
  5. Following Project Structure will be created TestWebÃ…pp Deployment Descriptor. TestWebApp Java Resources: .src Libraries build WebCantent e META-INF WEB-INF lib web,xml JavaScript Support Copy right to Supriya Mallick 5
  6. Basic File folder structure ' Inside src folder keep your java class files. ' Inside WebContent folder, WEB-INF -> lib and web.xml will be present. ' Don't change these name and structures. All JSP and HTML will be inside WebContent folder. All required JARS will be in lib folder. All application configuration will be in web.xml file. Copy right to Supriya Mallick
  7. Heart of a J2EE Web application What is the heart of a J2EE web application? ' Its web.xml ' According to J2EE specification container/server knows web.xml file only. ' From web.xml container reads rest of the configuration and files. ' According to J2EE specification web.xml must be placed in WebContent ->WEB-INF web.xml Copy right to Supriya Mallick
  8. What web.xml web,xml Context Param: Filters Listeners Servlets on- config Mime Mappings welcome-file-list Error Pages JSP config Security Constraints login-config Security Roles Env Entries Services Resources Message Destinations can contain? locale-encoding-mapping-list Copy right to Supriya Mallick 8
  9. Thank You. Copy right to Supriya Mallick 9