facebook

[Closed] no getter method

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #249012 Reply

    ourfirm
    Member

    I used j2ee1.3 in myeclipse,and my problem is that when I test the Login.jsp page in the web browser,it throw an exception as follow:

    javax.servlet.ServletException: No getter method for property PassWord of bean org.apache.struts.taglib.html.BEAN
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
    org.apache.jsp.Login_jsp._jspService(Login_jsp.java:88)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    root cause

    the source code of my jsp page is:

    <%@ page language=”java”%>
    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean&#8221; prefix=”bean”%>
    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-html&#8221; prefix=”html”%>

    <html>
    <head>
    <title>JSP for LoginForm form</title>
    </head>
    <body>
    <html:form action=”/Login”>
    PassWord : <html:password property=”PassWord”/><html:errors property=”PassWord”/><br/>
    UserName : <html:text property=”UserName”/><html:errors property=”UserName”/><br/>
    <html:submit/><html:cancel/>
    </html:form>
    </body>
    </html>

    by the by ,I’m chinese.My expression may be more or less not native.

    #249034

    Riyad Kalla
    Member

    You want to change your properties to “passWord” and “userName”, that will convert them to the methods “setPassWord” and “setUserName”

    notice the change in camel humps.

    #249079

    ourfirm
    Member

    the problem has been solved ,thank you very much.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] no getter method

You must be logged in to post in the forum log in