JSP & Servlets
1.0.0
1.0.0
  • Setting up
  • Pre-requisites
  • Servlet Part 1
  • Servlet Part 2
  • Understanding the servlet
  • Servlet XML Configuration
  • POST method and passing parameters
  • Passing more parameters
  • Understanding GET and POST
  • Request, Session and Context Part -1
  • Request , Session and Context Part - 2
  • Understanding init, service and ServletConfig
  • Hello JSP
  • Understanding JSP
  • JSP Page directives
  • HttpServletRequest Path Decoding
  • Scopes in JSP and the PageContext Object
  • Understanding MVC pattern
  • PART -1 Writing an MVC app
  • JSTL
    • For-each
  • CRUD-1
  • Project Work
    • Create a Simple Java Web Application Using Servlet, JSP/JSTL and JDBC/Transaction
  • Locale Filter
  • Action Plan
    • Schedule
    • Hit webservice
Powered by GitBook
On this page

Was this helpful?

Setting up

NextPre-requisites

Last updated 6 years ago

Was this helpful?

Softwares required:

1) Eclipse IDE

2) Apache tomcat server

Steps to setup :

1) Create new server.

2) Select apache

3) Select tomcat version that is installed in your system.

4) Browse the directory and select JAVA SE to remove default JRE.

5) Select tomcat folder from your system.

6) Click on finish.

7) Right click on server and select start.

8) Check logs: server startup in 8787s

9) Server state will change from stopped to started.

10) Now check by hitting the url: localhost:8080/

Here localhost: is the IP address of your local machine and 8080 is the port on which tomcat listen requests.

Possible Output 1 :

Possible Output 2 :

11) In case of output 1 i.e. error 404 do the below steps, first find the server in the short view or in others (refer to below 3 screenshots)

13) Choose the second option i.e. :

14) Right click on server and select properties.

12) Double click on the server : Tomcat v8.x Server at localhost [started,sync...]

"use tomcat installation [takes control of tomcat installation]" and save.

15) Click on switch location and select "apply and close".

16) Now retry by hitting the url (localhost:8080/) again.