JSF简单实例及无法正常访问的解决方法(404和The markup in the document preceding the root element must be well-formed. )

本文介绍了JSF简单实例的访问问题,包括HTTP 404错误的解决方法,强调了'Faces Servlet'配置和URL模式的重要性。同时,文章还讨论了'The markup in the document preceding the root element must be well-formed.'错误,指出JSP文件应遵循XHTML规则以避免此类错误。
摘要由CSDN通过智能技术生成

一、HTTP Status 404 - /JSFLoginDemo/userLogin.faces

去除如下红色配置即可正常访问:

<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值