Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 2.24 KB

File metadata and controls

40 lines (24 loc) · 2.24 KB
graph LR
    JSP_Views["JSP Views"]
    Authentication_Servlet["Authentication Servlet"]
    JSP_Views -- "submits data to" --> Authentication_Servlet
    Authentication_Servlet -- "redirects to" --> JSP_Views
    JSP_Views -- "interacts with" --> Database
    JSP_Views -- "interacts with" --> Database
Loading

CodeBoardingDemoContact

Details

The JspChat application exhibits a simplified architectural style, primarily driven by JavaServer Pages (JSPs) that handle both presentation and significant portions of business logic and data access. A dedicated servlet manages the initial login request, but much of the core user management functionality is embedded directly within the JSP files. The subsystem under analysis is defined by the JspChat project's web content (WebContent directory) and its core Java servlet (src/com/hjy/web/servlet).

JSP Views

This component encompasses all JavaServer Pages (.jsp files) responsible for rendering the user interface. Crucially, these JSPs also embed significant portions of the application's business logic and direct database interactions for user authentication and registration. They are responsible for collecting user input and displaying dynamic content.

Related Classes/Methods:

  • JspChat/WebContent/Qqlogin.jsp
  • JspChat/WebContent/document.jsp
  • JspChat/WebContent/login.jsp
  • JspChat/WebContent/register.jsp

Authentication Servlet

The LoginServlet serves as the primary controller for handling initial user login requests. It receives credentials submitted from the login form and orchestrates the subsequent authentication flow, typically by redirecting to a JSP that completes the authentication process and manages user sessions.

Related Classes/Methods:

  • com.hjy.web.servlet.LoginServlet