Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting/getting bean's invalid property

 
lalit upadheyay
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What would happen if we specify non-existing or invalid property name in <jsp:setProperty > or <jsp:getProperty> for an existing bean instance.

I have observed that tomcat throws a page full of errors regarding property in the specified bean class. But it also translates the jsp code till that point to its corresponding servlet source code.

Is this a translation or compilation error ?

I think its a translation error. Please comment.

Regards,
Lalit
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a Compilation error. During translation container looks for only jsp syntax errors. Since there is no jsp syntax error and its only a semantic error it gets poped-up during compilation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic