Barracuda: About URLRewriting using DefaultDOMWriter

"Zhihai Li" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi, Barracuda Community 
I met a  Problem ----    on Barracuda ( 1.1.1 )  URLRewritting  and XMLC 2.1
 
                   We are using  org.enhydra.barracuda.core.util.dom.DefaultDOMWriter.  
                                --  write(Node node, HttpServletResponse resp, OutputOptions oo)  
                      and in the OutputOptions we add the implemented  URLRewriter . 
 
Result   ---   if we turned off the Brower cookie , the rendered page still don't have the Rewriting. 
 
Found  ----  and Looked at the source code,  actually it is  org.enhydra.barracuda.core.util.dom.io. BaseDOMFormatter 
 
                     try to do the real job , and the way it did is before using any Rewriter Passed , checking whether the Document or Node being rendered 
 
                     implemented  from Interface org.enhydra.barracuda.core.util.dom.io.DocumentInfo.  
 
Surprise ---   ( !!!!! This  DocumentInfo   is not implemented by any class in Barracuda or XMLC  --- XMLCObject   !!!!)
 
                       and All the XMLCObject did implement   ---- org.enhydra.xml.io.DocumentInfo
 
 Change ----  And we tested change the BaseDOMFormatter to use the DocumentInfo in XMLC  and URL Rewriting works perfectly  !!!
 
So , I guess may be we have some reason to have two DocumentInfo , or may be a bug. 
 
Thanks, zhihai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.