File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark ""Cannot find any information on property" error" Watch ""Cannot find any information on property" error" New topic
Author

"Cannot find any information on property" error

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
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);
}

}
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Can't see anything wrong there. The problem is probably in your JSP. Please post the code using the UBB CODE tags (next to the Graemlins).

Jules
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Thanks for the response. Here is the JSP code calling Beans

index.jsp



[ August 27, 2004: Message edited by: Dilip kumar ]
Susanta Chatterjee
Ranch Hand

Joined: Aug 12, 2002
Posts: 102
Try using


instead of

[ August 27, 2004: Message edited by: Susanta Chatterjee ]
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Thanks ! Looks like it worked. It couldn't verify it as I'm getting other errors. I'm looking into those errors.
 
 
subject: "Cannot find any information on property" error