File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Trying to implement Validation Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Trying to implement Validation Framework" Watch "Trying to implement Validation Framework" New topic

Trying to implement Validation Framework

uday kantt

Joined: May 05, 2011
Posts: 26

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(
at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(
at org.apache.jsp.login_jsp._jspx_meth_html_005ftext_005f0(
at org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(
at org.apache.jsp.login_jsp._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(

So what could be the reason. Please help.
pooja par
Ranch Hand

Joined: Feb 14, 2011
Posts: 31
The exception clearly says you have - No getter method for property username
Please provide getters and setters for property "Username" in the BEAN
I agree. Here's the link:
subject: Trying to implement Validation Framework
It's not a secret anymore!