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;