摘要
在进行Java Web开发的过程中,由于采用的编码和解码的方式不统一,经常会出现乱码问题。文中首先介绍了Java Web的编码机制及JSP运行原理,继而阐述了在开发过程中常见的乱码问题及解决方案,最后提出采用过滤器重写getParameter方法,实现了对采用get方式、post方式和URL提交数据的统一解决方案,从而使开发人员更方便的解决乱码问题。
During the process of Java Web development, as a result of the encoding and decoding methods are not unified, often appear problem. This paper first introduces the encoding scheme and JSP operation principle of Java Web, and then the problem is common in the development process and the solution, and finally puts forward the filter overrides the getParameter method to realize the get mode, post mode and URL submit data integration solutions, so as to enable developers to more easily to solve the problem.
出处
《电脑知识与技术(过刊)》
2014年第10X期6884-6888,共5页
Computer Knowledge and Technology