Skip to content

e-terven/java_servlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java_servlet

This snippet helped me practice Java Servlet concepts such as:

Java Servlet Architecture

Servlet Lifecycle

Servlet Methods

Servlet Collaboration

Servlet Attributes

Session Management

Session Lifecycle

alt-image _

The content type is a way for the server to communicate with the browser about the type of data being sent.

HelloServlet: I used .setContextType( ) method to specify the type of content that the browser should expect to receive. Alternatively, @RequestMapping could be used. For the types of the context:

  • "text/plain" for plain text content
  • "application/json" for JSON data
  • "image/jpeg" for JPEG images

About

Servlet API with JSP in Jakarta EE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published