• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.

 
Legend has it that if you rub the right tiny ad, a genie comes out.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic