From f1a0ad8cc05113d426eef1f3c3f8219b55e190f4 Mon Sep 17 00:00:00 2001 From: Arpit Sarang Date: Sun, 8 Dec 2024 21:00:08 +0530 Subject: [PATCH] feat: Update index.jsp (#3066) 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 cb268a763..47a8d774c 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.

+
+