aspose file tools*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Trying to implement Validation Framework" Watch "Trying to implement Validation Framework" New topic
Author

Trying to implement Validation Framework

uday kantt
Greenhorn

Joined: May 05, 2011
Posts: 26

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

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: http://aspose.com/file-tools
 
subject: Trying to implement Validation Framework
 
Similar Threads
tomcat cannot display jsp struts
struts action form not working
how to finding the error while struct application in tom cat server ????
javax.servlet.jsp.JspException: Not nested in a tag of proper type.
SwitchAction in struts?????