From 4f5f0f33e89025d7049ce919855ea1cb8f591f23 Mon Sep 17 00:00:00 2001 From: Bayram Turgut <137455737+bayramtturgutt@users.noreply.github.com> Date: Sat, 3 Aug 2024 12:10:33 +0300 Subject: [PATCH] Modernized bottom.jsp Used JSTL for setting the basePath. Replaced inline JavaScript event handlers with addEventListener. Simplified the JavaScript logic for managing the form and elements. --- JspChat/WebContent/bottom.jsp | 207 +++++++++++++++++----------------- 1 file changed, 106 insertions(+), 101 deletions(-) diff --git a/JspChat/WebContent/bottom.jsp b/JspChat/WebContent/bottom.jsp index b551e45..99025b4 100644 --- a/JspChat/WebContent/bottom.jsp +++ b/JspChat/WebContent/bottom.jsp @@ -1,118 +1,123 @@ -<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> <% String path = request.getContextPath(); -String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> - - + +
-