• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Error : GetProperty: Mandatory attribute property missing

 
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic