AW: [daisy] chaching problem with extern included XSP

Ehms, Jürgen jge at msc-ge.com
Thu Jul 13 08:25:58 CDT 2006


Thanks for the fast responce

I found on this line 1036:

 XSPObjectHelper.xspExpr(contentHandler, ((String) session.getAttribute(k)));

In the XSP i list my session params bei getting the session and then step through the Attributes.

<snip/>
      java.util.Enumeration enum = request.getParameterNames();
      while (enum.hasMoreElements())
      {
      String k = (String) enum.nextElement();
      <param>
	 <xsp:attribute name="name">
             <xsp:expr>k</xsp:expr>
             </xsp:attribute>
             
             <xsp:expr>((String) session.getAttribute(k))</xsp:expr>
             
             </param>
            }

I have not much experience how to prevent to get the attributes as java.util.locale object. 

> <snip/>
> > Message: java.util.Locale
> > Class: java.lang.ClassCastException
> > Stacktrace: 
> > 
> org.apache.cocoon.www.cocoon_.daisy.mscintra.ext.prodsearch.itm.wer_se
> > l_xsp_pipelinehash__8625529294769213369.generate 
> > 
> (org.apache.cocoon.www.cocoon_.daisy.mscintra.ext.prodsearch.itm.wer_s
> > el_xsp_pipelinehash__8625529294769213369:1036)
> 
> This is the problem.
> 
> Daisy sets both a session attribute and request attribute 
> named "locale" containing a java.util.Locale object. Maybe 
> your XSP tries to get such an attribute but expects there to 
> be something else then a java.util.Locale object, such as a 
> string. This might be what is done on line 1036 of the 
> generated java file.
> 
> -- 
> Bruno Dumon                             http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> bruno at outerthought.org                          bruno at apache.org
> 
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: 
> http://outerthought.org/site/services/daisy/da> isysupport.html
> 
> mail to: daisy at lists.cocoondev.org
> list 
> information: http://lists.cocoondev.org/mailman/listinfo/daisy
> 


More information about the daisy mailing list