Skip to content

Commit

Permalink
Update BookDetail_jsp.java
Browse files Browse the repository at this point in the history
  • Loading branch information
margaritalm authored May 7, 2024
1 parent 706c98e commit 20f7ad0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BookDetail_jsp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 20f7ad0

Please sign in to comment.