This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp:getProperty - Name was not previously introduced as per JSP.5.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:getProperty - Name was not previously introduced as per JSP.5.3" Watch "jsp:getProperty - Name was not previously introduced as per JSP.5.3" New topic
Author

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

James Bejee
Greenhorn

Joined: Nov 05, 2012
Posts: 1
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

Joined: Jul 06, 2005
Posts: 1016
"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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jsp:getProperty - Name was not previously introduced as per JSP.5.3
 
Similar Threads
Problem with Web Service Response
getting null values, while fetching data
Display Java Method Result in JSP
Storing of Data
Unable to update database