Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error : GetProperty: Mandatory attribute property missing  RSS feed

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error : org.apache.jasper.JasperException: /MrBean.jsp(27,21) GetProperty: Mandatory attribute property missing
Please tell me why this error occurs ?


Aim : Index html page will send request with two attributes to JSP. Jsp will use a bean - MrBean and set and get its String name based on the request parameters.


JSP

 
Mike Zal
Ranch Hand
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The actual name is : <jsp:getProperty name="guy" name="info"/>


You repeated the name attribute instead of the property attribute. You should be using EL instead of getProperty. It is a lot easier to type ${guy.info} than the getProperty tag.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike Zal wrote:

The actual name is : <jsp:getProperty name="guy" name="info"/>


You repeated the name attribute instead of the property attribute. You should be using EL instead of getProperty. It is a lot easier to type ${guy.info} than the getProperty tag.


Thanks for pointing that out. That was a very bad error.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!