File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem using JavaBeans in Jsp" Watch "problem using JavaBeans in Jsp" New topic

problem using JavaBeans in Jsp

Mohamed AshrafM

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,
Mohamed Ashraf.M
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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

author of:
I agree. Here's the link:
subject: problem using JavaBeans in Jsp
It's not a secret anymore!