开发者

the markup document following the root element must be well formed

I am getting the following error while saving my faces-config.xml:

the markup document following the root element must be well formed

And my xml is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC 
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<managed-bean>
    <managed-bean-name>UserBean</managed-bean-name>
    <managed-bean-class>com.jsfcompref.register.UserBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
</managed-bean>

<n开发者_如何学JAVAavigation-rule>
    <from-view-id>/register.jsp</from-view-id>
    <navigation-case>
        <from-outcome>register</from-outcome>
        <to-view-id>/confirm.jsp</to-view-id>
    </navigation-case>
</navigation-rule>

</faces-config>

I have closed all the tags properly, still I am getting this error.


The open tag <faces-config> is missing. Put it between <DOCTYPE...> and <managed-bean>.


Use any JSF IDE, so that you are not bothered with such markup issues. Virtually all IDE's supporting JSF provide a GUI for handling faces-config.xml file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜