Hi John, I have looked into spring code and the class cast exception is at the following line of code locale = (Locale) session.getAttribute(JSTL_LOCALE_ATTRIBUTE + SESSION_SCOPE_SUFFIX); Where JSTL_LOCALE_ATTRIBUTE = "javax.servlet.jsp.jstl.fmt.locale" and SESSION_SCOPE_SUFFIX = ".session"
does magnolia set this attribute in the code? If so is it not of type java.util.Locale Thanks, Aditya.P On Tue, Oct 18, 2005 at 10:59:02AM -0400, Aditya Poosarla wrote: > Hi, > > I am trying to integrate magnolia with spring MVC. I made a template which > includes another jsp which has <spring:bind> tag's in it. When I try to > access a page made using this template I get a class cast exception. If I > remove the spring tags completely from the included page the template is > shown fine. I am using magnolia 2.1 and resin as my server. > > I can access the included page directly and it also works fine in which case > it is handled by the spring servlet > > The exception I get is > ERROR org.springframework.web.servlet.tags.BindErrorsTag > RequestContextAwareTag.java(doStartTag:75) 18.10.2005 10:56:48 > java.lang.ClassCastException > at > org.springframework.web.servlet.support.RequestContext.getFallbackLocale(RequestContext.java:248) Hi Aditya, in order to get faster help have you had a look at your Spring's source code to determine which class it is waiting for ? Best regards, -- john.mettraux @ openwfe.org -///- http://www.openwfe.org ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
