wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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: 60078
    
  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();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InstantiationException
 
Similar Threads
drop down list
Datasource Connection
Interesting problem in Forwarding request dispatcher
Fill out a html-form using a servlet ?
Servlet - Urgent help required.