File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes problem using JavaBeans in Jsp 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 » Java » Servlets
Bookmark "problem using JavaBeans in Jsp" Watch "problem using JavaBeans in Jsp" New topic
Author

problem using JavaBeans in Jsp

Mohamed AshrafM
Greenhorn

Joined: May 22, 2001
Posts: 5
when ever i run the jsp in j2ee server, i get the following error
error 1
Unhandled error! You might want to consider having an error page to report such errors more gracefully
javax.servlet.ServletException: null
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)

error 2
unable to load class contact(this is classname)
remove my gloom please
thanx in advance,
regards
Mohamed Ashraf.M
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
For problem 1 - define an error page and have it dump a stack trace.
For problem 2 - the most common causes are:
a. class file in the wrong place
b. failure to give the complete package in the class attribute of your <jsp:useBean tag
Bill

------------------
author of:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: problem using JavaBeans in Jsp