This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Request to Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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
Sheriff

Joined: Aug 03, 2008
Posts: 9307
    
  17

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