wood burning stoves 2.0
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
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(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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Trying to implement Validation Framework
It's not a secret anymore!