Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find any information on property 'noa' in a bean of type 'pack.Op'

 
Ankit Wasankar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write beans that will return addition, subtraction, multiplication and division in String result; But I am getting following error..My codes are as below.. Please help me.. I'm stuck in this code..








When I call I get following error...

type Exception report

message An exception occurred processing JSP page /call_bean.jsp at line 12

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /call_bean.jsp at line 12

9: <html>
10: <jsp:useBean id="st" class="pack.Op"/>
11:
12: <jsp:setProperty name="st" property="noa" value="<%=no1%>"/>
13: <jsp:setProperty name="st" property="nob" value="<%=no2%>"/>
14:
15: <jsp:getProperty name="st" property="result"/>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have no getter for the property.
 
Ankit Wasankar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You have no getter for the property.


Thanks, it solved my problem...Yeah I changed my name to my real name..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic