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

JSP - page directive import

 
Elier Rguez
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

While I was checking my fails in Niko - Jsp mock exam http://nikojava.wordpress.com/2009/08/22/free-scwcd-mock-exam-for-jsps/, I found something that I don't understand. Why if I added the page import, the <jsp:useBean> can't find the Person bean without specify the entire path "example.Person"?


Thanks,

Message: The value for the useBean class attribute Person is invalid.



 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2534
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why if I added the page import, the <jsp:useBean> can't find the Person bean without specify the entire path "example.Person"?

Because the class attribute needs a FQN (fully qualified name).

From the JSP specs:

class The fully qualified name of the class that defines the implementation of the object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic