之前当我们save.xhtml它已运行项目但现在当我们更改.jsf时它没有运行项目.. 404中有错误
这里是我的代码:
的web.xml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:b="http://bootsfaces.net/ui">
<h:head>
<title></title>
</h:head>
<h:body>
<h:form>
<h:outputText value="Welcome " style="color:#BB7104;font-size:20px;"> </h:outputText><h:outputText value="Please Login"></h:outputText>
<br></br>
<h:message for="formLogin" style="color:red"> </h:message>
<table style="margin-top: 10px;">
<tr><td>
<b:inputText id="uName" value="#{loginMB.loginaccess.username}" >
<f:facet name="prepend">
<b:iconAwesome name="fa fa-user" />
</f:facet>
</b:inputText>
<p:watermark value="UserName" for="uName"></p:watermark>
<h:message for="uName" style="color:red;font-size:11px;" id="un"></h:message>
</td></tr>
<tr><td>
<b:inputSecret id="pwd" value="#{loginMB.loginaccess.userpassword}" placeholder="Password">
<f:facet name="prepend">
<b:iconAwesome name="fa fa-key" />
</f:facet>
</b:inputSecret>
<h:message for="pwd" id="pd" style="color:red;font-size:11px;"></h:message>
</td></tr>
</table>
</h:form>
<table>
<tr>
<td>
<b:commandButton value="Login" action="#{loginMB.userLogin}" look="warning" iconAwesome="sign-in"></b:commandButton>
</td></tr></table>
</ui:composition>
login.jsf
apply.monthly
请给我任何建议