my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "problem on page import directive" Watch "problem on page import directive" New topic
Author

problem on page import directive

Bob CHOI
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
Bob CHOI
Ranch Hand

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