java.lang.ClassCastException
Respected Sir
I am getting the java.lang.ClassCastException in the following while comparing the value id.equals() in th follwoing if.
Please suggest some solution.
<%
if (session.getAttribute("stoneId") != null){
String id = (String) session.getAttribute("stoneId");
if (id.equals(request.getAttribute("stone"))) {
%>
<strong><c:out value="${stone.codeName} " /></strong>
<%
}
Thanx in advance

