Re: Using Jivan in a Barracuda App

Thelmo Loisio <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
On Tue, 2003-11-18 at 17:19, David R Robison wrote:
> Do you have an example of what to set in the object-repository to use jivan?
> David

From the contrib package here it is snippet from
object-repository.xml...

<object name="$df"
class="org.enhydra.barracuda.core.util.dom.XMLCDeferredParsingDOMFactory">
        <!-- set the servlet context so that the dom factory can read
web.xml context params -->
    <method name="setServletContext" arg="$sc"/>
  </object>

  <object class="org.enhydra.barracuda.core.util.dom.DefaultDOMLoader">
    <method name="getGlobalInstance" return="$dl"/>
  </object>

... and from java within an handleViewEvent method...

Document page =
DefaultDOMLoader.getGlobalInstance().getDOM(WaitHTML.class,
context.getViewCapabilities().getClientLocale());


-- 
Thelmo



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Scopri come proteggere dai virus il tuo computer e come eliminare
ogni tipo di virus!.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1558&d=18-11
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.