dbTalk Databases Forums  

ClassCastException

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss ClassCastException in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
srinivas
 
Posts: n/a

Default ClassCastException - 02-18-2005 , 04:27 AM






Hi all,
Im using the function getParameterMap of HttpRequest.This is working
fine if I use it on Oracle Application Server..But If using the same on
Tomcat it is throwing ClassCastException..
My code is like

Map requestMap = request.getParameterMap();
System.out.println("Map" + requestMap);
attrValue = (String) requestMap.get("cmd");
In the above statement the Exception is thrown.. It seems String Array
is returned instead of String. But im submitting the page with only one
field. So there is no question of String Array.The same is working fine
in Oracle AppServer..

Anybody, Suggest some solution...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.