This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Mock exam question
JSP - UseBean
jsp:include
jsp:useBean question
Java Beans