• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP - page directive import

 
Ranch Hand
Posts: 34
  • 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.



 
Creator of Enthuware JWS+ V6
Posts: 3349
303
Android Eclipse IDE Chrome
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic