File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes problem on page import directive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "problem on page import directive" Watch "problem on page import directive" New topic

problem on page import directive

Ranch Hand

Joined: Nov 10, 2006
Posts: 127

JasperException thrown when requesting the jsp page:
org.apache.jasper.JasperException: The value for the useBean class attribute MyBean is invalid

Now, the property returned correctly when using fully qualified bean name instead of page import directive. Why?

Hard work rewards
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
You will have to give the fully qualified name of the bean, i think jsp:useBean create the object using reflection type of thing thats why it needs fully qualified name
Ranch Hand

Joined: Nov 10, 2006
Posts: 127
Thanks, Ali
i was mislead by the exception msg...
I agree. Here's the link:
subject: problem on page import directive
Similar Threads
jsp:useBean question
JSP - UseBean
Java Beans
Mock exam question