This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12755
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
Similar Threads
Exception with the available Buffer
jsp tag library...
jsp:useBean ... nested Exception
IncompatibleClassChangeError error
java.exe error