View RSS Feed

Eclipse

Develop a Java EE Application in Eclipse

Rate this Entry
by , 02-11-2012 at 03:30 PM (1467 Views)
1. Setup Eclipse for Web Development

• Install Eclipse for Java EE
• Install a web server like tomcat of glassfish
• Configure web server in your Eclipse
o Launch Eclipse->Window->Preference->Server Node->Runtime Environment->Add->Expand Apache and add tomcat

2. Hello Word JSP

• Create a new Web Application
o File->New->Dynamic Web Project
o Enter “HelloJSP” as project name and enter finish
• Create new JSP page
o Right click on your project
o New->Jsp File and enter “Hello” in file name

3. Create a Servlet

• Create a new Web Application:
o File -> New -> Dynamic Web Project
o Write HelloServlet in project name
• Create a new Servlet:
o Right click on the project
o New -> Servlet -> In "Java Package", enter "hello"
o In "Class Name", enter "HelloServlet"
o In "URL Mappings", select "\HelloServlet",

Submit "Develop a Java EE Application in Eclipse" to Facebook Submit "Develop a Java EE Application in Eclipse" to Digg Submit "Develop a Java EE Application in Eclipse" to del.icio.us Submit "Develop a Java EE Application in Eclipse" to StumbleUpon Submit "Develop a Java EE Application in Eclipse" to Google

Comments