Instructor-led training
Fast Track to Servlets/JSP on the JBoss Application Server Training in Elyria, Ohio
This course is a comprehensive tutorial in the design and programming of Java Web applications using servlets and JSP.
What you'll learn
This course is a comprehensive tutorial in the design and programming of Java Web applications using servlets and JSP. It starts with Web application architecture, usage, and deployment. It teaches about the capabilities of servlets, servlet architecture, and session management, JSP structure and syntax, and good design techniques for using them. Extensive coverage is included on how to efficiently use the JSP Expression Language (EL), custom tags, and the JSTL library. The course is current with the latest releases of the specification, and uses the latest capabilities to write Web applications in the most efficient way possible. This includes the use of the JSP Expression Language directly in JSP 2.0+ Web pages, an overview of creating custom tags with tag files, and other new capabilities that make the framework much more user friendly. The complete course will give you excellent experience on how to build robust and capable Web applications using the latest features of the Java EE Web container.
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Elyria, Ohio or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes servlets and JSP hard to master
The Java is rarely the obstacle. The difficulty is that the web container owns the control flow: it creates servlets, calls init(), service() and destroy(), and maps requests through web.xml. Many mistakes only show up at deployment or under concurrent requests.
- Lifecycle and sharing. The syllabus covers the servlet lifecycle,
ServletConfigandServletContext. A common misconception is that each request gets its own servlet. In practice one instance serves many requests, so instance fields are shared state. - Scopes. Data moves between components through page, request, session and application scope using get/set/remove attribute calls. Choosing the wrong "bucket" causes data leaks or lost data.
- Model 2 MVC. Servlet controllers, JavaBeans and JSP views, joined with
RequestDispatcherforward and include. Learners tend to put logic in the JSP, which is why the course covers dividing responsibilities between servlets and JSP. - EL and JSTL. The Expression Language looks simple, but identifiers, implicit objects,
pageContextand type coercion have rules of their own. Tags such asc:forEach,c:choose,fmt:formatDateand custom tags (TLDs, tag files) replace scriptlets. - State and security. HTTP is stateless, so the course moves from hidden fields to cookies to
HttpSession. It then covers declarative security (roles, Basic, Form-Based, Digest and HTTPS client authentication) alongside programmatic role checks.
The order matters: servlets and HTTP first, then JSP, then MVC and scopes, then EL/JSTL, sessions, error pages, security, and finally filters and a JSF overview.
Who it suits and what to take around it
This is an introductory course for developers who already program in Java but have not built container-based web applications. It suits teams that build, maintain or migrate servlet/JSP applications. The labs use JBoss AS for deployment and for a security domain. The syllabus names Java SE 7 and earlier, which Oracle lists as out of support. Organizations on newer Java releases or server versions can request a training proposal for private training tailored to the versions they run.
For next steps, the business-tier layer sits behind the web tier: Fast Track to EJB 3.0 Using JBoss follows naturally once you can route requests and keep state in a web application. If the application will also expose HTTP APIs, Programming REST Web Services with JAX-RS 2.0 builds on the HTTP and request/response concepts introduced here.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Form-driven workflow. A team might build an order-entry flow. A servlet controller reads parameters, populates a JavaBean, places it in request scope and forwards to a JSP that renders it with EL and
c:forEach. This draws on parameter access,RequestDispatcher, scopes and JSTL. - Securing an internal admin area. A team might restrict pages by role using form-based authentication and a security domain on the server. It might then use programmatic role checks to hide individual actions. This draws on declarative and programmatic security and
HttpServletRequestrole retrieval. - Cleaning up an older JSP code base. A maintenance team might replace scriptlets with EL, JSTL and tag files. It might add error pages and a servlet filter for cross-cutting behavior. This draws on the scriptlet, error page, tag file and filter chain topics.
AI coding assistants with servlets and JSP
AI coding assistants are useful for boilerplate: servlet skeletons, web.xml mappings, JavaBeans, JSTL loops and first drafts of tag files. They also explain unfamiliar EL expressions in existing pages.
They tend to fail in areas this course emphasizes:
- Concurrency. Generated servlets may keep request data in instance fields, which is unsafe because one instance serves many requests.
- Version fit. Suggestions may mix APIs, package names or configuration styles from different eras, or rely on features your container version does not provide. Server-specific setup such as a security domain is especially error-prone.
- Output and session handling. Generated code may print user input directly instead of escaping it, or put too much in the session.
- Security configuration. A plausible-looking
web.xmlconstraint can leave URLs unprotected.
To verify, deploy to your target server and test with each role and with an unauthenticated user. Submit markup in form fields and check how it is rendered. Check scope choices by hand, and run concurrent requests against any servlet that holds state. Read the server log for deployment warnings.
Frequently asked questions
What level is this course, and what do I need beforehand?
It is introductory to web development but assumes experience programming in Java. You do not need prior servlet, JSP or application server experience.
What does it cover?
Servlet basics and lifecycle, HTTP requests and responses, JSP and the Expression Language, Model 2 MVC with RequestDispatcher, JSTL and custom tags, cookies and HttpSession, error pages, declarative and programmatic security, tag files, servlet filters and a JSF overview. Labs use JBoss AS.
Is JSF covered in depth?
No. The syllabus gives JSF an overview only: components, process flow, and advantages and disadvantages.
Can this be delivered privately onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the content be customized?
Yes. Private training can be tailored to the technology versions and topics an organization uses. Use the training proposal request to describe your environment.
Training locations
Fast Track to Servlets/JSP on the JBoss Application Server training across the U.S. and beyond.
We provide private Fast Track to Servlets/JSP on the JBoss Application Server training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Fast Track to Servlets/JSP on the JBoss Application Server training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.