File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Cannot find any information on property" error

 
Dilip kumar
Ranch Hand
Posts: 360
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 360
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using


instead of

[ August 27, 2004: Message edited by: Susanta Chatterjee ]
 
Dilip kumar
Ranch Hand
Posts: 360
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ! Looks like it worked. It couldn't verify it as I'm getting other errors. I'm looking into those errors.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic