• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to implement Validation Framework

 
uday kantt
Greenhorn
Posts: 26
Java MyEclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am developing a sample login application using struts 1.2. The application works fine the user could login. But when I started to implement validation framework the following exception is raised and the login screen is not dispalyed;

SEVERE: Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: No getter method for property username of bean org.apache.struts.taglib.html.BEAN
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at org.apache.jsp.login_jsp._jspx_meth_html_005ftext_005f0(login_jsp.java:167)
at org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:122)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:85)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

So what could be the reason. Please help.
 
pooja par
Ranch Hand
Posts: 31
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exception clearly says you have - No getter method for property username
Please provide getters and setters for property "Username" in the BEAN
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic