`

WebSphere对jsp页面编码严格的匹配,导致页面访问异常

阅读更多
IBM Websphere对jsp页面的编码是大小写敏感的,我们在Websphere环境下编写代码,当父页面包含其他子页面时,必须保证一致,否则就会发生莫名其妙的错误,异常如下:


E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[/admin/view/index.jsp]: com.ibm.ws.jsp.translator.JspTranslationException: JSPG0228E: Exception caught while translating /admin/view/index.jsp: error in statically included file
/include/returnToLogin.jsp(1,1) --> JSPG0120E: Illegal to specify different values for pageEncoding attribute and configuration element for matching URI pattern. directive: "[UTF-8]" configuration: "[utf-8]"


解决方法很简单,大小写一致了就OK。

此处充分表现了编码习惯的重要性。
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics