Compiling and using Barracuda HelloWorld4 example with Enhydra

 

 

//package org.enhydra.barracuda.tutorials.comp;

//import org.enhydra.barracuda.tutorials.xmlc.*;

 

Document page = DefaultDOMLoader.getGlobalInstance().getDOM(HelloWorld4HTML.class, locale);

 

To:

 

Document page = DefaultDOMLoader.getGlobalInstance().getDOM(barr4.presentation.HelloWorld4HTML.class, locale);

 

                        And

 

Node headerNode = DefaultDOMLoader.getGlobalInstance().getDOM(HelloWorld4_headerHTML.class).getElementById("Header");

 

                        To:

 

Node headerNode = DefaultDOMLoader.getGlobalInstance().getDOM(barr4.presentation.HelloWorld4_headerHTML.class).getElementById("Header");

 

 

<web-app>

    <servlet>

        <servlet-name>

            HelloWorld4

        </servlet-name>

        <servlet-class>

            HelloWorld4

        </servlet-class>

     </servlet>

    

    <servlet-mapping>

        <servlet-name>

            HelloWorld4

        </servlet-name>

        <url-pattern>

            /

        </url-pattern>

    </servlet-mapping>

</web-app>

 

ant.

or (if barr4 is not your application root)

ant –Dapp.root=your_app.root

 

 

NOTE: The archives barr3.zip and barr4.zip contain the file structure needed for compilation (no need to create the file structure manually). You can unpack these files which are already modified and prepared and simply issue ant command to compile the applications.