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 InstantiationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "InstantiationException" Watch "InstantiationException" New topic
Author

InstantiationException

Dong Hoang
Greenhorn

Joined: Aug 24, 2004
Posts: 10
Does anyone know why am I getting this exception?

E SRVE0026E: [Servlet Error]-[bean message not found within scope ]: java.lang.InstantiationException: bean message not found within scope

I have a drop down list with 4 sort options within my jsp. When a selection is made the "onchange=doSort()" javascript function is called and submit to my servlet.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

I suspect that the problem may be within the ShowException.jsp file. Check the useBean tags on that page to make sure that they are correct.

Why are you not using declarations in the web.xml to direct errors rather than this non-standard mechanism?
[ August 24, 2004: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dong Hoang
Greenhorn

Joined: Aug 24, 2004
Posts: 10
I am not familiar with web.xml. Do you have an example that you can point me to?
Dong Hoang
Greenhorn

Joined: Aug 24, 2004
Posts: 10
I am not familiar with web.xml. Do you have an example that you can point me to?
Dong Hoang
Greenhorn

Joined: Aug 24, 2004
Posts: 10
Thanks for the quick respond.

Now I am getting a NullPointerException on this line

String claimNo = req.getParameter("claimNo").toUpperCase();
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: InstantiationException
 
Similar Threads
Interesting problem in Forwarding request dispatcher
Datasource Connection
Servlet - Urgent help required.
drop down list
Fill out a html-form using a servlet ?