File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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 question
JSP - UseBean
jsp:include
Java Beans
Mock exam question