新写了一个JSP页面,什么都没改,就提示
The server encountered an internal error () that prevented it from fulfilling this request.
这是怎么回事呢?
看提示是
exception
org.apache.jasper.JasperException: /input.jsp(3,0) Page directive must not have multiple occurrences of pageencoding
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
那么就是import的包导错了,查看页面
发现第一行
<%@page import="javax.servlet.descriptor.TaglibDescriptor"%>
错误在此,删掉即可