Java EE + JSP Beginner Course: 6-Week Teacher Guide
Java EE + JSP Beginner Course: 6-Week Teacher Guide (4 Hours per Week)
Overview:
This 6-week course introduces students to the fundamentals of Java EE and JSP with a modern,
real-world-focused approach. The plan avoids outdated syntax like <%! ... %> and emphasizes good
practices such as MVC and JSTL. Each week contains 2 hours of lecture and 2 hours of practical lab.
Week 1: Introduction to Java EE and JSP
Lecture (2 hrs):
- What is Java EE?
- What is JSP? Role in MVC.
- JSP File Structure and Lifecycle
- Comparison: JSP vs Servlet
Practical (2 hrs):
- Create HelloWorld.jsp page
- Show current date with <%= new java.util.Date() %>
- (Optional) View generated Servlet code
Week 2: Basic JSP Syntax
Lecture (2 hrs):
- JSP Scriptlet <% %>, Expression <%= %>, and Directive <%@ %>
- Why avoid <%! ... %> in real-world projects
Practical (2 hrs):
- Create a JSP page using variables and expressions
- Compare same result using Servlet
Week 3: Handling Form Data
Java EE + JSP Beginner Course: 6-Week Teacher Guide
Lecture (2 hrs):
- HTML Forms in JSP
- How to use request.getParameter()
- Passing data using request.setAttribute() and request.getAttribute()
Practical (2 hrs):
- Build a login form in JSP
- Display submitted data on a new JSP page
Week 4: JSTL and Expression Language (EL)
Lecture (2 hrs):
- Why JSTL and EL?
- JSTL core tags: <c:out>, <c:forEach>, <c:if>, <c:set>
- How to declare tag libraries in JSP
Practical (2 hrs):
- Create a sample product list using ArrayList in Servlet
- Loop and display products in JSP with <c:forEach>
- Use EL ${} to access values
Week 5: MVC with JSP + Servlet
Lecture (2 hrs):
- MVC Pattern: Controller, View, Model
- How to pass data from Servlet to JSP
- Role of request/response/session
Practical (2 hrs):
- Create a Student List using Servlet and JSP
Java EE + JSP Beginner Course: 6-Week Teacher Guide
- Add sample student data in Servlet
- Display in JSP using EL and JSTL
Week 6: Mini Project + Review
Lecture (2 hrs):
- Recap of full course
- Mini Project Planning
- Assign group roles (Developer, UI Designer, Tester)
Practical (2 hrs):
- Start Mini Project (see below)
- Help students test and debug their work
Mini Project Idea: Student Directory System
Features:
- Show student list (name, email, course)
- Add new student (form input)
- Servlet stores list in memory or ArrayList
- JSP displays students using JSTL
Starter Files to Include:
- index.jsp (Home Page)
- addStudent.jsp (Form to add student)
- listStudents.jsp (Display student list)
- Student.java (Model class)
- StudentServlet.java (Controller)
- web.xml or @WebServlet configuration
End of Guide