Howdy, Print out the value of session.getAttribute("DBREADER") before you set it: that way you can see what its real runtime class is. It probably won't be that locationHelper class you're trying to cast into...
Yoav Shapira --- Mufaddal Khumri <[EMAIL PROTECTED]> wrote: > Made a typo in my previous email .. heres the corrected email: > > I get the following error in tomcat: > > java.lang.ClassCastException > at > org.apache.jsp.EditOffering_jsp._jspService(EditOffering_jsp.java:129) > > I looked at EditOffering_jsp.java and it has this at line 129: > > locationHelper = > (com.wavesinmotion.cw.classes.jsphelpers.LocationHelper) > pageContext.getAttribute("locationHelper", PageContext.SESSION_SCOPE); > > which in the corresponding .jsp page is: > > <jsp:useBean id="locationHelper" > class="com.wavesinmotion.cw.classes.jsphelpers.LocationHelper" > scope="session"> > <jsp:setProperty name="locationHelper" > property="dbReader" > value="<%= > session.getAttribute("DBREADER")%>" /> > <jsp:setProperty name="locationHelper" > property="dbWriter" > value="<%= > session.getAttribute("DBWRITER")%>" /> > </jsp:useBean> > > Does anybody have any idea as to why i am getting this class cast > exception ? > > Thanks. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ===== Yoav Shapira [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]