This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"Cannot find any information on property" error  RSS feed

 
Dilip kumar
Ranch Hand
Posts: 360
  • 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
  • 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
  • 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
  • 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
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!