This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classCast Exception in Action class

BalajiNityaa Varadharajan
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic