aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Request to Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Request to Bean" Watch "Request to Bean" New topic
Author

Request to Bean

Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Hi !

I keep getting the error and have been getting it for quite some time and i cant figure out why it is invalid!

org.apache.jasper.JasperException: /TestBean.jsp(1,1) The value for the useBean class attribute foo.Employee is invalid.

My code:


Person.java


Employee.java


TestBean.jsp




Even when I would class="foo.Employee" with out the "type" , I would get the same error.

And it all loooks so simple!





The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9191
    
    2

Your Employee class is not public...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
oh Miee!! And i still haven't learned from my mistakes!

Thanks alot!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request to Bean
 
Similar Threads
Error on basic jsp...
JSP:useBean Question
jsp:setProperty
jsp:useBean doubt
Understanding Errors in creating a bean.