From 20f7ad0a42f308e5d0de68fe206f141d13421382 Mon Sep 17 00:00:00 2001 From: Margarita Date: Tue, 7 May 2024 16:35:10 +0300 Subject: [PATCH] Update BookDetail_jsp.java --- BookDetail_jsp.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BookDetail_jsp.java b/BookDetail_jsp.java index 4ab01fd..f036f5d 100644 --- a/BookDetail_jsp.java +++ b/BookDetail_jsp.java @@ -169,6 +169,12 @@ String getParam(javax.servlet.http.HttpServletRequest req, String paramName) { return param; } + String getParam(javax.servlet.http.HttpServletRequest req, String paramName) { + String param = req.getParameter(paramName); + if ( param == null || param.equals("") ) return ""; + return param; + } + boolean isNumber (String param) { boolean result; if ( param == null || param.equals("")) return true;