diff --git a/Welcome.jsp b/Welcome.jsp index b64c200..4587be0 100644 --- a/Welcome.jsp +++ b/Welcome.jsp @@ -1,150 +1,849 @@ - - +<%-- + Document : welcome + Created on : Apr 11, 2024, 3:49:41 PM + Author : 2552586 +--%> + + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + +<%@ page session="true" %> - - Assign Capabilities - - -

Assign Capabilities to User

-
- -

- - -

- -
- -
- -
- - -
- - -
- - + + + + + + + + + + + + + + + + + - -package com.example; - -import java.io.IOException; -import java.io.PrintWriter; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.util.ArrayList; -import java.util.List; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import com.google.gson.Gson; - -// Screen class to represent a screen object -class Screen { - private String id; - private String name; - - public Screen(String id, String name) { - this.id = id; - this.name = name; - } - - public String getId() { - return id; - } - - public String getName() { - return name; - } -} - -@WebServlet("/getScreens") -public class GetScreensServlet extends HttpServlet { - private static final String DB_URL = "jdbc:oracle:thin:@localhost:1521:xe"; - private static final String DB_USER = "your_db_user"; - private static final String DB_PASSWORD = "your_db_password"; - - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - response.setContentType("application/json"); - response.setCharacterEncoding("UTF-8"); - - List screens = new ArrayList<>(); - - try (Connection conn = DriverManager.getConnection(DB_URL, DB_USER, DB_PASSWORD)) { - String sql = "SELECT SCREEN_ID, SCREEN_NAME FROM SCREENS"; - PreparedStatement pstmt = conn.prepareStatement(sql); - ResultSet rs = pstmt.executeQuery(); - - while (rs.next()) { - String id = rs.getString("SCREEN_ID"); - String name = rs.getString("SCREEN_NAME"); - screens.add(new Screen(id, name)); + + + + + + + + + + + <% + String ModuleName = new String(); + + ModuleName = (String) session.getAttribute("moduleName"); + String role = (String) session.getAttribute("userRole"); + String pacsId = (String) session.getAttribute("pacsId"); + String holidayList = (String) session.getAttribute("holidayList"); + String kccBalanceTransfer = (String) session.getAttribute("kccBalanceTransfer"); + String broadcastMessage = (String)session.getAttribute("returnMessage"); + +// added by chhanda on 29/8/24 + String user = (String) session.getAttribute("user"); + String pacsName = (String) session.getAttribute("pacsName"); + String UserName = (String) session.getAttribute("UserName"); + String Mobile = (String) session.getAttribute("Mobile"); + + + %> + + + +
"> + + + + + + +
+ +
+
+
+ + Holidays +
+
    +
  • +

    <%=holidayList%> +

    +
  • +
+
+ Notifications +
+ +
    +
  • +

    Test Notification 1. +

    +
  • +
+
    +
  • +

    Test Notification 2. +

    +
  • +
+
    +
  • +

    Test Notification 3. +

    +
  • +
+ +
    +
  • +

    Test Notification 4.

    +
  • +
+ +
    +
  • +

    Test Notification 5.

    +
  • +
+ +
    +
  • +

    Test Notification 6.

    +
  • +
+
+
+ + +
+ +
+ +
+ Dashboard +
+ +
+ +
+ +
+
+ + + + + +
+
+ + +
+ + + <% if (broadcastMessage != null && !broadcastMessage.isEmpty()) {%> + +
+ <%} else{%> + + <% }%> + + +