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 InstantiationException 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 "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: 60752
    
  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
Interesting problem in Forwarding request dispatcher
Datasource Connection
Servlet - Urgent help required.
drop down list
Fill out a html-form using a servlet ?