jsf - java.lang.NullPointerException in a simple JSP Facelets Page -


i getting error while run project in netbeans ide.. have used jsp-facelets not getting output..

**welcomejsf.jsp**    <%@page contenttype="text/html" pageencoding="utf-8"%>    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>   <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>    <!doctype html public "-//w3c//dtd html 4.01 transitional//en"   "http://www.w3.org/tr/html4/loose.dtd">    <f:view>    <html>       <head>         <meta http-equiv="content-type" content="text/html; charset=utf-8"/>         <title>main page</title>       </head>     <body>          <h1><h:outputtext value="welcome javaserver faces"/></h1>         <br>         <center>         <table border="1" width="30%" cellpadding="3">             <thead>                 <tr>                     <th colspan="2">login here</th>                 </tr>             </thead>             <tbody>                 <tr>                     <td><h:outputtext value="name:"/></td>                     <td><h:inputtext id="name" required="true" requiredmessage="enter    name!!" autocomplete="false" maxlength="20" label="name" value="#{user.name}" /></td>                 </tr>                 <tr>                     <td><h:outputtext value="password:"/></td>                     <td><h:inputsecret id="password" required="true" requiredmessage="enter password" label="password" maxlength="20" value="#{user.password}" /></td>                 </tr>                 <tr>                     <td><h:commandbutton id="loginbtn" value="login" type="submit" action="#{user.login}" /></td>                     <td><h:commandbutton id="resetbtn" value="reset" type="reset" /></td>                 </tr>                 <tr>                     <td colspan="2">yet not registered!! <h:commandbutton id="registerbtn" value="register here" type="submit" action="reg.jsp" /></td>                 </tr>             </tbody>          </table>         </center>         </body>              </html>       </f:view> 

and web.xml file is:

     <?xml version="1.0" encoding="utf-8"?>      <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"  xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">     <context-param>     <param-name>javax.faces.project_stage</param-name>     <param-value>development</param-value>       </context-param>     <servlet>     <servlet-name>faces servlet</servlet-name>     <servlet-class>javax.faces.webapp.facesservlet</servlet-class>     <load-on-startup>1</load-on-startup>      </servlet>    <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.jsp</url-pattern>    </servlet-mapping>   <dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version>     </dependency>   <session-config>     <session-timeout>         30     </session-timeout>    </session-config>   <welcome-file-list>     <welcome-file>faces/welcomejsf.jsp</welcome-file>    </welcome-file-list>     </web-app> 


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -