This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:getProperty - Name was not previously introduced as per JSP.5.3

 
James Bejee
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running in to a problem when trying to set up a bean jsp page. I get the error /WEB-INF/EnterItem.jsp(15,66) jsp:getProperty for bean with name 'itemID'. Name was not previously introduced as per JSP.5.3.







What could be the cause of this?
 
Stefan Evans
Bartender
Posts: 1640
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Name was not previously introduced" indicates that you haven't told your JSP about this bean as of yet.

The "name" of the bean used in the jsp:getProperty tag should match the "id" of the bean in the jsp:useBean tag.
i.e.:



Your useBean references an id of "itemBean"
Your getProperty references a name of: "itemID"
Your BeanMaker class stores a request attribute of "item"

These three values should presumably be the same.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic