• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find any information on property in a bean of type

 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Im faced with the following error in my code .
Cannot find any information on property 'StatusActive' in a bean of type 'com.jspcrud.bean.DomainBean'
at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:839)
at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1066)
at org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1124)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417).
I've cjhecked and rechecked my jsp and bean class to see if the names of the bean match, however the error is still present.
im placing my jsp and bean class below. Please have a look and tell me where I could be going wrong.
Thanks


My bean Class.

Thanks for helping.
 
Stefan Evans
Bartender
Posts: 1782
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to java bean standards/requirements, names for attributes must start with a lower case letter.

Change your attribute "StatusActive" on your JSP page to "statusActive"


 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i did change it according to the code convention to the way you have specified , yet the value of the checkbox isnt being populated .
This is my code.


 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , there was a name mismatch and so the error.
Thanks for helping!
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it was resolved. Thanks Bear,will mark as resolved in the future
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic