Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem on page import directive

 
Bob CHOI
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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?





 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Ali
i was mislead by the exception msg...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic