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
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: 12755
    
    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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
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