The JSP in WebSphere uses EL expression ${fn.replace} error-' Fn:replace ' not found

Source: Internet
Author: User

WebSphere Publishing app, El Expression ${fn.replace} for JSP error:

[10/24/17 19:02:45:181 CST] 00000038 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service Srve0068e:an Exception was thrown by one of the service methods of the Servlets [/web-inf/jsp/modules/xx/xx.jsp] in application [Xx_war] . Exception created: [javax.el.ELException:Function ' fn:replace ' not found

At Org.apache.el.lang.ExpressionBuilder.visit (expressionbuilder.java:197)
At

cause of error : WebSphere does not correctly handle the function of a single quote -wrapped El expression.

workaround : Enclose the El expression in double quotation marks instead of single quotes.

Examples are as follows:

Problematic JSP code

< Div     ></div >  

Modified to:

<= "${fn:replace (pdata.attributes.type, ' | ', ' _ ')}_invest${ind.index}" ></ Div >

Reference:

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014934503

The JSP in WebSphere uses EL expression ${fn.replace} error-' Fn:replace ' not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.