From 1f8564baab943cde7410dc0e8a922c43ea54b6c0 Mon Sep 17 00:00:00 2001 From: Arpit Sarang Date: Wed, 16 Oct 2024 00:52:05 +0530 Subject: [PATCH] Update index.jsp Title: Added a element to provide a title for the page. Enhanced Styling: Improved styling for readability and aesthetic appeal, including a background color and box shadow for the parameter section. Expanded Descriptions: Clarified the purpose of each parameter. Example Request: Provided an example of how to format a GET request. Error Handling Tip: Included a note on what to do if the request fails. --- composite-view/web/index.jsp | 60 +++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 14 deletions(-) diff --git a/composite-view/web/index.jsp b/composite-view/web/index.jsp index cb268a7637d4..47a8d774caad 100644 --- a/composite-view/web/index.jsp +++ b/composite-view/web/index.jsp @@ -26,21 +26,53 @@ --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> - <head> +<head> + <title>Composite Patterns Mock News Site - - + +

Welcome To The Composite Patterns Mock News Site

-

Send a GET request to the "/news" path to see the composite view with mock news

-

Use the following parameters:

-

name: string name to be dynamically displayed

-

bus: boolean for whether you want to see the mock business news

-

world: boolean for whether you want to see the mock world news

-

sci: boolean for whether you want to see the mock world news

-

sport: boolean for whether you want to see the mock world news

- +
+

Send a GET request to the "/news" path to see the composite view with mock news

+

Use the following parameters:

+

name: string - Your name to be dynamically displayed

+

bus: boolean - Set to true to see mock business news

+

world: boolean - Set to true to see mock world news

+

sci: boolean - Set to true to see mock science news

+

sport: boolean - Set to true to see mock sports news

+

Example Request:

+

/news?name=John&bus=true&world=false&sci=true&sport=false

+

If the request fails, ensure you have the correct parameters and try again.

+
+