我的web.xml配置有错误?谁能帮我看看错在那?在线等???
我的web.xml配置如下: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<description>
JSP应用开发详解
</description>
<display-name>Welcome to Resin</display-name>
<servlet>
<servlet-name>HelloWorldServlet</servlet-name>
<servlet-class>HelloWorldServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
</web-app>
运行后提示的错误是::
WEB-INF/web.xml:3: <?xml ... ?> occurs after content. The <?xml ... ?>
prolog must be at the document start.
我改了多少次~~~~还是不不行?
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<description>
JSP应用开发详解
</description>
<display-name>Welcome to Resin</display-name>
<servlet>
<servlet-name>HelloWorldServlet</servlet-name>
<servlet-class>HelloWorldServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
</web-app>
运行后提示的错误是::
WEB-INF/web.xml:3: <?xml ... ?> occurs after content. The <?xml ... ?>
prolog must be at the document start.
我改了多少次~~~~还是不不行?
...全文
相关推荐
web.xml配置详解, web.xml web.xml 配置实例
Web.xml 配置详解Web.xml 是一个部署描述符文件,用于描述 Web 应用程序的配置信息。该文件是基于 XML 语法的,所有的元素都是大小写敏感的。
在web.xml中引入其他xml配置文件的步骤
### 在web.xml中引入其他XML配置文件的步骤在Java Web开发中,`web.xml`作为Web应用程序的核心配置文件,负责定义应用级别的配置信息。
web.xml各种配置
- **error-page**: 定义错误页面的配置。- **taglib**: 定义标签库描述符。
web.xml的配置文件
"web.xml是Java Web开发中的核心配置文件,用于定义Web应用程序的行为和结构。在开发过程中,由于其复杂性,配置错误是常见问题。以下是一个基础的web.xml文件头的示例,用于指导配置过
在web.xml中设置错误处理页面.docx
web.xml 文件的 `<error-page>` 元素在 JavaWeb 应用程序中,web.xml 文件是核心配置文件之一,它定义了应用程序的各项配置信息,包括错误处理页面。


Web 开发
