This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes classCast Exception in Action class 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 » JSP
Bookmark "classCast Exception in Action class" Watch "classCast Exception in Action class" New topic
Author

classCast Exception in Action class

BalajiNityaa Varadharajan
Greenhorn

Joined: Jan 15, 2006
Posts: 19
Hi,

I have populated a form bean with a object which contains a object of my class.In form bean,i have a method which returns this object. Return type of this method is java.lang.Object.

In action class, when i tried to type cast the value retrieved from form bean to the object of my classType, I am getting classcastException.

Please let me know, if any body know what is the issue.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classCast Exception in Action class
 
Similar Threads
Empty Action Form
Perform the Same Action "with" and "without" a Form
bean not found within request scope, but session scope
popup window loses variable
Will the setters be called