Hi,
I'm getting following error message in my application. Really appreciate any suggestions/corrections. Thanks
[8/27/04 15:25:58:781 EDT] 34132ccb WebGroup E SRVE0026E: [Servlet Error]-[Cannot find any information on property 'UserID' in a bean of type 'SQLBean']: org.apache.jasper.JasperException: Cannot find any information on property 'UserID' in a bean of type 'SQLBean'
at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:873)
SERVLET :
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
SQLBean sb = new SQLBean();
sb.setUserID(req.getParameter("UserID"));
sb.setPassword(req.getParameter("Password"));
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("index.jsp");
rd.forward(req,resp);
}
BEAN :
public class SQLBean {
private String UserID;
private String Password;
public void setUserID(String UID) {
this.UserID = UID;
}
public void setPassword(String PWD) {
this.Password = PWD;
}
public String getUserID() {
return(UserID);
}
public String getPassword() {
return(Password);
}
}
I'm getting following error message in my application. Really appreciate any suggestions/corrections. Thanks
[8/27/04 15:25:58:781 EDT] 34132ccb WebGroup E SRVE0026E: [Servlet Error]-[Cannot find any information on property 'UserID' in a bean of type 'SQLBean']: org.apache.jasper.JasperException: Cannot find any information on property 'UserID' in a bean of type 'SQLBean'
at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:873)
SERVLET :
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
SQLBean sb = new SQLBean();
sb.setUserID(req.getParameter("UserID"));
sb.setPassword(req.getParameter("Password"));
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("index.jsp");
rd.forward(req,resp);
}
BEAN :
public class SQLBean {
private String UserID;
private String Password;
public void setUserID(String UID) {
this.UserID = UID;
}
public void setPassword(String PWD) {
this.Password = PWD;
}
public String getUserID() {
return(UserID);
}
public String getPassword() {
return(Password);
}
}