Download presentation
Presentation is loading. Please wait.
Published bySherilyn Jodie Tyler Modified over 9 years ago
1
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet
2
Start Eclipse and Add a New Server
3
View Installed Server Adapters
4
Download a New Adapter for Glassfish
5
Select Glassfish and Click Next
6
Accept License and Click Finish
7
Glassfish Server Tools will be Installed
8
Restart the Eclipse IDE
9
View Glassfish Configurations
10
Click Glassfish Server Properties
11
Switch Glassfish Location
12
Create a New Project
13
Select Dynamic Web Project
14
Name the Project ‘SimpleServletProject’
15
Select src as the Java Files Directory
16
Select ‘Deployment Descriptor’
17
Add the Navigator Window in view
18
Navigator window is similar to File Locations
19
View differences between Project explorer and Navigator window
20
View the web.xml file
21
Understand the welcome-file in web.xml
22
Add a new html file in your Project
24
Name the html file’index.html’
25
Edit the html file
26
Run your web Project
27
View the outputs!
28
Change url and view changes
29
Create your first Servlet
30
Select ‘Servlet’
31
Enter package name, class name
32
Enter a description and edit URL mapping path
33
Select only ‘doGet’ method
34
View your Servlet from Navigator
35
Enter code in ‘doGet’ method
36
Run your project [you can also run the servlet alone]
37
View output in console, you need to enter the path of servlet
38
Now, write codes that will output in html page
39
Refresh page and view output
40
Modify code and do something else in html
41
View output difference! That’s the html!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.