paramName = urlEncode( paramName, "UTF-8" ); queryString += ( isFirst ? "" : "&" ) + PARAM_ISNULL + "=" + paramName;
paramName = urlEncode( paramName, UTF_8_ENCODE ); queryString += ( isFirst ? "" : PARAMETER_SEPARATOR ) + PARAM_ISNULL + EQUALS_OPERATOR + paramName;
	public static String getEncodedQueryString( HttpServletRequest request,			String name, String value )	{		String queryString = ""; //$NON-NLS-1$		Enumeration e = request.getParameterNames( );		Set nullParams = getParameterValues( request, PARAM_ISNULL );		boolean isFirst = true;		while ( e.hasMoreElements( ) )		{			String paramName = (String) e.nextElement( );			if ( paramName != null					&& !paramName.equalsIgnoreCase( PARAM_ISNULL ) )			{				String paramValue = getParameter( request, paramName, false );				if ( nullParams != null						&& nullParams.remove( toUTFString( paramName ) )						&& !paramName.equalsIgnoreCase( name ) ) // Parameter				// value is				// null.				{					paramName = urlEncode( paramName, "ISO-8859-1" ); //$NON-NLS-1$					queryString += ( isFirst ? "" : "&" ) + PARAM_ISNULL + "=" + paramName; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$					isFirst = false;					continue;				}				if ( paramName.equalsIgnoreCase( name ) )				{					paramValue = value;				}				paramName = urlEncode( paramName, "ISO-8859-1" ); //$NON-NLS-1$				paramValue = urlEncode( paramValue, "UTF-8" ); //$NON-NLS-1$				queryString += ( isFirst ? "" : "&" ) + paramName + "=" + paramValue; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				isFirst = false;			}		}		if ( nullParams != null && nullParams.size( ) > 0 )		{			Iterator i = nullParams.iterator( );			while ( i.hasNext( ) )			{				String paramName = (String) i.next( );				if ( paramName != null && !paramName.equalsIgnoreCase( name ) )				{					paramName = urlEncode( paramName, "UTF-8" ); //$NON-NLS-1$					queryString += ( isFirst ? "" : "&" ) + PARAM_ISNULL + "=" + paramName; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$					isFirst = false;				}			}		}		if ( name != null && name.length( ) > 0 ) // Only handle valid name.		{			if ( getParameter( request, name ) == null )			{				String paramValue = value;				paramValue = urlEncode( paramValue, "UTF-8" ); //$NON-NLS-1$				queryString += ( isFirst ? "" : "&" ) + name + "=" + paramValue; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				isFirst = false;			}		}		return queryString;	}