Heh, ok so there is a good reason to do this with the == null test. I'll
just do the blank check externall for the stuff I can about. Har! git-svn-id: https://samskivert.googlecode.com/svn/trunk@1214 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ParameterUtil.java,v 1.9 2003/08/28 20:13:41 eric Exp $
|
// $Id: ParameterUtil.java,v 1.10 2003/09/03 17:08:21 eric Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -53,7 +53,7 @@ public class ParameterUtil
|
|||||||
HttpServletRequest req, String name, boolean returnNull)
|
HttpServletRequest req, String name, boolean returnNull)
|
||||||
{
|
{
|
||||||
String value = req.getParameter(name);
|
String value = req.getParameter(name);
|
||||||
if (StringUtil.blank(value)) {
|
if (value == null) {
|
||||||
return returnNull ? null : "";
|
return returnNull ? null : "";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user