public static String attributeValue ( String valueIn , boolean encode , Class expectedType , JspConfiguration jspConfig , boolean isTagFile , String pageContextVar ) { String value = valueIn ; value = value . replaceAll ( "&gt;" , ">" ) ; value = value . replaceAll ( "&lt;" , "<" ) ; value = value . replaceAll ( "&amp;" , "&" ) ; value = value . replaceAll ( "<\\%" , "<%" ) ; value = value . replaceAll ( "%\\>" , "%>" ) ; if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINEST ) ) { logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "valueIn = [" + valueIn + "]" ) ; logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "encode = [" + encode + "]" ) ; logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "expectedType = [" + expectedType + "]" ) ; logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "isTagFile = [" + isTagFile + "]" ) ; } if ( JspTranslatorUtil . isExpression ( value ) ) { value = value . substring ( 2 , value . length ( ) - 1 ) ; if ( encode ) { value = "org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(String.valueOf(" + value + "), request.getCharacterEncoding())" ; //PK03712 } if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINEST ) ) { logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "isExpression. value = [" + value + "]" ) ; } } else if ( JspTranslatorUtil . isELInterpreterInput ( value , jspConfig ) ) { if ( encode ) { //PK65013 - add pageContextVar parameter value = "org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(" + interpreterCall ( isTagFile , value , expectedType , "_jspx_fnmap" , false , pageContextVar ) + ", request.getCharacterEncoding())" ; } else { //PK65013 - add pageContextVar parameter value = interpreterCall ( isTagFile , value , expectedType , "_jspx_fnmap" , false , pageContextVar ) ; } if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINEST ) ) { logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "isELInterpreterInput. value = [" + value + "]" ) ; } } else { if ( encode ) { value = "org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode(" + quote ( value ) + ", request.getCharacterEncoding())" ; } else { value = quote ( value ) ; } if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINEST ) ) { logger . logp ( Level . FINEST , CLASS_NAME , "attributeValue" , "default. value = [" + value + "]" ) ; } } return ( value ) ; }
PK65013 add method parameter pageContextVar