Xml can't be bound??

Greetings,
Again, a small problem:
I would like to, when clicked on the btnAddItem.jpg-image,
(<mx:Image id="btnAddItem" source="assets/btnAddItem.jpg"
click="addItem(repConsumables.currentItem,event.currentTarget)"
/>
) a trace is triggered with the corresponding xmlstructure
bound to that image.
I can't seem to get this working.
Also, when running in debugmode, I get the warnings below
CODE
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
color="#400000" creationComplete="
printerData.send()" xmlns:c="comp.*">
<mx:Metadata>
[Event(name="itemSelected", type="events.itemEvent")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;
import mx.collections.XMLListCollection;
import events.itemEvent;
[Bindable]
private var printerXML:XMLList;
[Bindable]
private var printerDP:XMLListCollection;
private function printerDataHandler(event:ResultEvent):void
printerXML = event.result..confItem;
printerDP = new XMLListCollection (printerXML);
[Bindable]
public var selectedItem:Object;
private function addItem(itemObj:Object,event:Object):void{
event.source = "assets/btnRemoveItem.jpg";
selectedItem = new Object();
selectedItem = itemObj;
var eventObj:itemEvent = new
itemEvent(selectedItem,"itemSelected");
trace(selectedItem);
/*dispatchEvent(eventObj);*/
]]>
</mx:Script>
<mx:HTTPService id="printerData"
url="data/data.xml"
showBusyCursor="true"
result="printerDataHandler(event)" resultFormat="e4x"/>
<mx:Spacer height="43" />
<mx:HBox width="100%">
<mx:Image source="assets/btnDisk.jpg"/>
<mx:Image source="assets/btnPrint.jpg"/>
<mx:Image source="assets/btnSend.jpg"/>
</mx:HBox>
<mx:Accordion id="accOptions" width="100%" height="100%"
headerHeight="32" backgroundAlpha="0"
fontSize="11" color="#0066CB" resizeToContent="true">
<mx:Repeater id="repAccOptions"
dataProvider="{printerDP}" startingIndex="0" >
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
label="
{repAccOptions.currentItem.label}" width="100%" height="100%"
verticalScrollPolicy="off">
<mx:VBox>
<mx:Text width="198"
htmlText="{repAccOptions.currentItem.text}" />
<mx:Repeater id="repConsumables" dataProvider="
{repAccOptions.currentItem.consumables.consumable}">
<mx:HBox width="100%">
<mx:Image id="btnAddItem" source="assets/btnAddItem.jpg"
click="
addItem(repConsumables.currentItem,event.currentTarget)"
/>
<mx:Text width="100%" htmlText="
{repConsumables.currentItem.consumableLabel}" />
<mx:Image source="assets/btnInfoItem.jpg" >
<mx:toolTip>
{repConsumables.currentItem.consumableLabel}&#13;Partnumber:
{repConsumables.currentItem.consumablePartnr}&#13;Price:{repConsumables.currentItem.consum ablePrice}
&#13;&#13;Omschrijving&#13;{repConsumables.currentItem.consumableDescr}
</mx:toolTip>
</mx:Image>
</mx:HBox>
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
</mx:Repeater>
</mx:Accordion>
</mx:VBox>
WARNINGS
Code:
warning: unable to bind to property 'text' on class 'XML'
(class is not an IEventDispatcher)
warning: unable to bind to property 'label' on class 'XML'
(class is not an IEventDispatcher)
warning: unable to bind to property 'consumables' on class
'XML' (class is not an IEventDispatcher)
warning: unable to bind to property 'consumable' on class
'XMLList' (class is not an IEventDispatcher)
warning: unable to bind to property 'text' on class 'XML'
(class is not an IEventDispatcher)
warning: unable to bind to property 'label' on class 'XML'
(class is not an IEventDispatcher)
warning: unable to bind to property 'consumables' on class
'XML' (class is not an IEventDispatcher)
warning: unable to bind to property 'consumable' on class
'XMLList' (class is not an IEventDispatcher

Note, this forum is for Flex Builder questions. Post Flex
language questions in the General Discussion forum. It also has
much more traffic.
First, "currentItem" ONLY exists while the repeater is
rendering, so you cannot use it in an event handler. You will need
to look into getRepeaterItem.
Second, the warnings are because currentItem, returns an
Object, and you can't bind to Object. The warnings are kind of
stupid, since the compiler obviously knows it is XML, but whatever.
This is the fix:
htmlText="{XML(repAccOptions.currentItem).text}"
This "casts" (not really, but..) the Object into XML, which
is bindable.
Tracy

Similar Messages

  • Can PB can calcute the bounding box as the needed region in AE?

    Hi,
    I wrote many small pixel bender that I use mainly in AE. However I need them to be as efficient as possible, so I wonder if Pixel Bender can obtain the bounding box of an image input as the needed region. This way, it will not calculate an entire frame when there is only a few pixels in the frame.
    Thanks
    Jocelyn Tremblay

    Hi,
    I did a major breakthrough by rethinking the model. Now I get a real speed improvment, and if the image is fully opaque, there is not too much drawback.
    Instead of a simple bounding box, I'm creating a grid in which each cell represent a region of the source and is float4(1). if there is any non-zero transparent pixel. In the last kernel of the graph, i'm processing only when the corresponding value in the grid is float4(1.). I get really efficient results from that. I'm including two graphs. A basic one with a fixed grid of 16px (I didn't do any beanchmark for the grid size) where I output the original image composited over the scaled grid in green. The second one, where the last kernel is a box blur, the grid size equal the blur radius, and there is a convolution kernel between the grid and the box blur that expand the grid to fit the blur.
    GridExperience.pbg
    <?xml version="1.0" encoding="utf-8"?>
    <graph name = "GridExperience" xmlns="http://ns.adobe.com/PixelBenderGraph/1.0">
        <metadata name = "namespace" value =  "com.jocelyntremblay"/>
        <metadata name = "vendor" value = "Jocelyn Tremblay" />
        <metadata name = "version" type = "int" value = "1" />
        <!-- Image inputs and outputs of the graph -->
        <inputImage type = "image4" name = "src" />
        <outputImage type = "image4" name = "dst" />
        <!-- Graph parameters -->
        <parameter type="float2" name="sourceSize" >
            <metadata name="minValue" type="float2" value="1"/>
            <metadata name="maxValue" type="float2" value="4096" />
            <metadata name="defaultValue" type="float2" value="634., 396." />
            <metadata name="aeUIControl" value="aePoint" />
            <metadata name="aePointRelativeDefaultValue" type="float2" value="1, 1" />
        </parameter>
            <!-- Graph parameters -->
        <parameter type="float" name="gridSize" >
            <metadata name="minValue" type="float" value="1"/>
            <metadata name="maxValue" type="float" value="64" />
            <metadata name="defaultValue" type="float" value="16" />
        </parameter>
         <!-- Embedded kernel -->
         <kernel>
          <![CDATA[
             <languageVersion : 1.0;>
             kernel getProcessingGrid
             <  
                namespace:"com.jocelyntremblay";
                vendor:"Jocelyn Tremblay";
                version:1;
             >{
                input image4 src;
                output float4 dst;
                parameter float2 sourceSize
                <
                    parameterType : "inputSize";
                    inputSizeName : "src";
                >;
                parameter float gridSize
                <
                    minValue:float(1.0);
                    maxValue:float(64.0);
                    defaultValue:float(5.0);
                >;
                region changed(region inputRegion, imageRef inputIndex){
                    return region(float4(0, 0, ceil(sourceSize.x/gridSize), ceil(sourceSize.y/gridSize)));
                void evaluatePixel(){
                    float j;
                    float4 pix;
                    dst = float4(0.0);
                    for (float i = 0.; i < gridSize; i++){
                        j = 0.;
                        for (j; j < gridSize; j++){
                            pix = sampleNearest(src, float2(floor(outCoord().x) * gridSize + i, floor(outCoord().y) * gridSize + j));
                            if (pix.a > 0.){
                                dst = float4(1.0);
                                i = j = gridSize;
          ]]>
         </kernel>
         <kernel>
          <![CDATA[
             <languageVersion : 1.0;>
             kernel drawProcessingGrid
             <  
                namespace:"com.jocelyntremblay";
                vendor:"Jocelyn Tremblay";
                version:1;
             >{
                input image4 src;
                input image4 processingGrid;
                output float4 dst;
                parameter float gridSize
                <
                    minValue:float(1.0);
                    maxValue:float(64.0);
                    defaultValue:float(5.0);
                >;
                void evaluatePixel(){
                    float4 gridSegment = sampleNearest(processingGrid, float2(floor(outCoord().x/gridSize), floor(outCoord().y/gridSize)));
                    if (gridSegment.a > 0.){
                                    //process
                                    dst = float4(0., 1., 0., 1.);
                                    float4 tt = sampleNearest(src, outCoord());
                                    if(tt.a > 0.){
                                        dst.rgb = tt.rgb;
                    else{
                        //do not process
                        dst = float4(0.);
          ]]>
         </kernel>
        <!-- Instances of the nodes -->
        <node id = "getProcessingGrid" name ="getProcessingGrid" namespace = "com.jocelyntremblay" vendor = "Jocelyn Tremblay" version ="1">
        <evaluateParameters>
                <![CDATA[void evaluateParameters() {
                    getProcessingGrid::gridSize = gridSize;
                    getProcessingGrid::sourceSize = sourceSize;
                }]]>
            </evaluateParameters>
        </node>
        <node id = "drawProcessingGrid" name ="drawProcessingGrid" namespace = "com.jocelyntremblay" vendor = "Jocelyn Tremblay" version ="1">
        <evaluateParameters>
                <![CDATA[void evaluateParameters() {
                    drawProcessingGrid::gridSize = gridSize;
                }]]>
            </evaluateParameters>
        </node>
        <!-- Connect the graph -->
        <connect fromImage = "src" toNode = "getProcessingGrid" toInput = "src" />
        <connect fromImage = "src" toNode = "drawProcessingGrid" toInput = "src" />
        <connect fromNode = "getProcessingGrid" fromOutput = "dst" toNode = "drawProcessingGrid" toInput = "processingGrid" />
        <connect fromNode = "drawProcessingGrid" fromOutput = "dst" toImage = "dst" />
    </graph>
    GridExperienceBoxBlur.pbg
    <?xml version="1.0" encoding="utf-8"?>
    <graph name = "GridExperienceBoxBlur" xmlns="http://ns.adobe.com/PixelBenderGraph/1.0">
        <metadata name = "namespace" value =  "com.jocelyntremblay"/>
        <metadata name = "vendor" value = "Jocelyn Tremblay" />
        <metadata name = "version" type = "int" value = "1" />
        <!-- Image inputs and outputs of the graph -->
        <inputImage type = "image4" name = "src" />
        <outputImage type = "image4" name = "dst" />
        <!-- Graph parameters -->
        <parameter type="float2" name="sourceSize" >
            <metadata name="minValue" type="float2" value="1"/>
            <metadata name="maxValue" type="float2" value="4096" />
            <metadata name="defaultValue" type="float2" value="1920., 720." />
            <metadata name="aeUIControl" value="aePoint" />
            <metadata name="aePointRelativeDefaultValue" type="float2" value="1, 1" />
        </parameter>
        <parameter type="float" name="blurRadius" >
            <metadata name="minValue" type="float" value="0"/>
            <metadata name="maxValue" type="float" value="25" />
            <metadata name="defaultValue" type="float" value="5" />
        </parameter>
         <!-- Embedded kernel -->
         <kernel>
          <![CDATA[
             <languageVersion : 1.0;>
             kernel getProcessingGrid
             <  
                namespace:"com.jocelyntremblay";
                vendor:"Jocelyn Tremblay";
                version:1;
             >{
                input image4 src;
                output float4 dst;
                parameter float2 sourceSize
                <
                    parameterType : "inputSize";
                    inputSizeName : "src";
                >;
                parameter float gridSize
                <
                    minValue:float(1.0);
                    maxValue:float(64.0);
                    defaultValue:float(16.0);
                >;
                region changed(region inputRegion, imageRef inputIndex){
                    return region(float4(0, 0,  ceil(sourceSize.x/gridSize), ceil(sourceSize.y/gridSize)));
                void evaluatePixel(){
                    float j;
                    float4 pix;
                    dst = float4(0.0);
                    for (float i = 0.; i < gridSize; i++){
                        j = 0.;
                        for (j; j < gridSize; j++){
                            pix = sampleNearest(src, float2(floor(outCoord().x) * gridSize + i, floor(outCoord().y) * gridSize + j));
                            if (pix.a > 0.){
                                dst = float4(1.0);
                                i = j = gridSize;
          ]]>
         </kernel>
         <kernel>
          <![CDATA[
             <languageVersion : 1.0;>
            kernel ConvKernel
            <
            namespace: "After Effects";
            vendor : "Adobe Systems Inc.";
            version : 1;
            description : "Convolves an image using a smoothing mask";
            >
                input image4 source;
                output pixel4 result;
                const float3x3 smooth_mask = float3x3( 1.0, 1.0, 1.0,
                1.0, 1.0, 1.0,
                1.0, 1.0, 1.0);
                const float smooth_divisor = 9.0;
                float4 convolve(float3x3 in_kernel, float divisor) {
                    float4 conv_result = float4(0.0, 0.0, 0.0, 0.0);
                    float2 out_coord = outCoord();
                    for(int i = -1; i <= 1; ++i) {
                        for(int j = -1; j <= 1; ++j) {
                            conv_result += sampleNearest(source,
                            out_coord + float2(i, j)) * in_kernel[i + 1][j + 1];
                    conv_result /= divisor;
                    return conv_result;
                void evaluatePixel() {
                    float4 conv_result = convolve(smooth_mask, smooth_divisor);
                    result = conv_result;
                region needed( region output_region, imageRef input_index ) {
                    region result = output_region;
                    result = outset( result, float2( 1.0, 1.0 ) );
                    return result;
                region changed( region input_region, imageRef input_index ) {
                    region result = input_region;
                    result = outset( result, float2( 1.0, 1.0 ) );
                    return result;
            } //kernel ends
            ]]>
          </kernel>
          <kernel>
          <![CDATA[
             <languageVersion : 1.0;>
                kernel BasicBoxBlur
                <   namespace : "AIF";
                    vendor : "Adobe Systems";
                    version : 2;
                    description : "variable Radius Box Blur"; >
                input image4 src;
                input image4 processingGrid;
                output float4 dst;
                parameter float blurRadius
                <
                    minValue:float(0.0);
                    maxValue:float(25.0);
                    defaultValue:float(5.0);
                >;
                dependent int radiusAsInt;
                void evaluateDependents(){
                    radiusAsInt = int(ceil(blurRadius));
                parameter float gridSize
                <
                    minValue:float(1.0);
                    maxValue:float(64.0);
                    defaultValue:float(16.0);
                >;
                region needed(region outputRegion, imageRef inputRef){
                    float2 singlePixel = pixelSize(src);
                    return outset(outputRegion, float2(singlePixel.x * ceil(blurRadius), singlePixel.y * ceil(blurRadius)));
                region changed(region inputRegion, imageRef inputRef){
                    float2 singlePixel = pixelSize(src);
                    return outset(inputRegion, float2(singlePixel.x * ceil(blurRadius), singlePixel.y * ceil(blurRadius)));
                void evaluatePixel(){
                    float4 gridSegment = sampleNearest(processingGrid, float2(floor(outCoord().x/gridSize), floor(outCoord().y/gridSize)));
                    if (gridSegment.a > 0.){
                        float denominator = 0.0;
                        float4 colorAccumulator = float4(0.0, 0.0, 0.0, 0.0);             
                        float2 singlePixel = pixelSize(src);
                        for(int i = -radiusAsInt; i <= radiusAsInt; i++)
                            for(int j = -radiusAsInt; j <= radiusAsInt; j++)
                                colorAccumulator += sampleNearest(src,
                                    outCoord() + float2(float(i) * singlePixel.x, float(j) * singlePixel.y));
                                denominator++;
                        dst = colorAccumulator / denominator;
                    else{
                        //do not process
                        dst = float4(0.);
          ]]>
         </kernel>
        <!-- Instances of the nodes -->
        <node id = "getProcessingGrid" name ="getProcessingGrid" namespace = "com.jocelyntremblay" vendor = "Jocelyn Tremblay" version ="1">
        <evaluateParameters>
                <![CDATA[void evaluateParameters() {
                    getProcessingGrid::sourceSize = sourceSize;
                    getProcessingGrid::gridSize = max(1., blurRadius);
                }]]>
            </evaluateParameters>
        </node>
        <node id = "ConvKernel" name ="ConvKernel" namespace = "After Effects" vendor = "Adobe Systems Inc." version ="1"></node>
        <node id = "BasicBoxBlur" name ="BasicBoxBlur" namespace = "AIF" vendor = "Adobe Systems" version ="2">
        <evaluateParameters>
                <![CDATA[void evaluateParameters() {
                    BasicBoxBlur::blurRadius = blurRadius;
                    BasicBoxBlur::gridSize = max(1., blurRadius);
                }]]>
            </evaluateParameters>
        </node>
        <!-- Connect the graph -->
        <connect fromImage = "src" toNode = "getProcessingGrid" toInput = "src" />
        <connect fromImage = "src" toNode = "BasicBoxBlur" toInput = "src" />
        <connect fromNode = "getProcessingGrid" fromOutput = "dst" toNode = "ConvKernel" toInput = "source" />
        <connect fromNode = "ConvKernel" fromOutput = "result" toNode = "BasicBoxBlur" toInput = "processingGrid" />
        <connect fromNode = "BasicBoxBlur" fromOutput = "dst" toImage = "dst" />
    </graph>

  • Why XML can't extract data in JSTL?

    I have a xml file,named test.xml,I put it into Tomcat5\webapps\ROOT directory, it's content like follows:
    <rolodex>
    <contact>
    <firstName>Anna</firstName>
    <lastName>Keeney</lastName>
    <email>[email protected]</email>
    <phone type="work">716-873-9644</phone>
    <phone type="home">716-834-8772</phone>
    </contact>
    </rolodex>
    Then I write a JSP,and put it into same directory of Tomcat5\webapps\ROOT too,the code is follows:
    <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
    <c:import var='rolodex_xml' url='http://localhost:8080/test.xml'/>
    <x:parse var='document' xml='${rolodex_xml}'/>
    <table>
    <x:forEach select='$document//contact'>
    <table>
    <tr>
    <td>First Name:</td>
    <td><x:out select='firstName'/></td>
    </tr>
    <tr>
    <td>Last Name:</td>
    <td><x:out select='lastName'/></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td><x:out select='email'/></td>
    </tr>
    <tr>
    <td>Work Phone:</td>
    <td><x:out select='phone[@type="work"]'/></td>
    </tr>
    <x:if select='phone[@type="home"]'>
    <tr>
    <td>Home Phone:</td>
    <td><x:out select='phone[@type="home"]'/></td>
    </tr>
    </x:if>
    </table>
    <br>
    </x:forEach>
    </table>               
    </body>
    </html>
    I want to extract data from test.xml and show the results in this JSP page,but when I run it,the page don't show the data,and only show:
    First Name:
    Last Name:
    Email:
    Work Phone:
    Home Phone:
    Why XML can't extract data from test.xml?
    Thanks in advance!

    View source on your page. What does it generate?
    Unless you import the xml taglib you can't actually use it.
    Try putting this on your page:
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>Cheers,
    evnafets

  • Berkeley DB XML Can't load 32-bit .dll on a 64-bit platform Netbeans

    Hi I am trying to use Berkely DB in netbeans java on 64-bit windows platform. I have downloaded and configured JDK 7 32 bit in project properties. It works well for a simple java project but when i do the same for a web application in netbeans for glassfish or Apache Tomcat Servers it gives this exception
    [Servlet execution threw an exception] with root cause
    java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Oracle\Berkeley DB XML 2.5.16\bin\libdb_java48.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1028)
         at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:38)
         at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:264)
         at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:77)
         at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:101)
    This problem was also coming before for simple java app but it resolved after configuring jdk in project properties but for web application its not working

    XML berkley db doesnt seem to support the java 64 bit model.
    In our Java application we get this error when using JRE7 but not JDK7 or JRE6
    The difference seemed to be that in JDK7 and JRE6 you can use java -D32, but thats not possible in JRE7 (you must use java -D64. So it seems to be a difference in JRE7 and JDK7 as well
    best regards,
    Tom-Erik

  • Namespaces in plan.xml - can't override weblogic.xml

    So, we've tried every combination we can think of, but we can't seem to get a plan.xml that successfully overrides items in weblogic.xml. It seems to be an issue around namespaces:
    <May 19, 2009 10:40:57 AM MDT> <Error> <J2EE> <BEA-160197> <Unable to load descriptor /nas/scart/domain_tmps/tcatshopDomain/servers/tcatshop1/tmp/_WL_user/MasterEar/v99i42/MasterWebPortal.war/WEB-INF/weblogic.xml of module MasterWebPortal.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    /nas/scart0/prod_ecom2/local/apps/apps92/tcatshop/THUNDER_01.09.06.004/nullplan.xml:0: problem: cvc-complex-type.2.4a: Expected elements 'description@http://www.bea.com/ns/weblogic/90 weblogic-version@http://www.bea.com/ns/weblogic/90 security-role-assignment@http://www.bea.com/ns/weblogic/90 run-as-role-assignment@http://www.bea.com/ns/weblogic/90 resource-description@http://www.bea.com/ns/weblogic/90 resource-env-description@http://www.bea.com/ns/weblogic/90 ejb-reference-description@http://www.bea.com/ns/weblogic/90 service-reference-description@http://www.bea.com/ns/weblogic/90 message-destination-descriptor@http://www.bea.com/ns/weblogic/90 session-descriptor@http://www.bea.com/ns/weblogic/90 jsp-descriptor@http://www.bea.com/ns/weblogic/90 auth-filter@http://www.bea.com/ns/weblogic/90 container-descriptor@http://www.bea.com/ns/weblogic/90 charset-params@http://www.bea.com/ns/weblogic/90 virtual-directory-mapping@http://www.bea.com/ns/weblogic/90 url-match-map@http://www.bea.com/ns/weblogic/90 security-permission@http://www.bea.com/ns/weblogic/90 context-root@http://www.bea.com/ns/weblogic/90 wl-dispatch-policy@http://www.bea.com/ns/weblogic/90 servlet-descriptor@http://www.bea.com/ns/weblogic/90 work-manager@http://www.bea.com/ns/weblogic/90 logging@http://www.bea.com/ns/weblogic/90 library-ref@http://www.bea.com/ns/weblogic/90' instead of *'session-descriptor@http://www.w3.org/2001/XMLSchema-instance' here in element weblogic-web-app@http://www.bea.com/ns/weblogic/90:<nullplan.xml>*
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:229)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:216)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
    This is in WLP 9.2...
    Plan:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://www.bea.com/ns/weblogic/90">
    <application-name>MasterEar.ear</application-name>
    <variable-definition>
    <variable>
    <name>ThundercatCookieName</name>
    <value>JSESSIONID_THUNDERCAT_PLAN_XML</value>
    </variable>
    <variable>
    <name>ThundercatCookieDomain</name>
    <value>.qwest.com</value>
    </variable>
    </variable-definition>
    <module-override>
    <module-name>MasterWebPortal.war</module-name>
    <module-type>war</module-type>
    <module-descriptor external="false">
    <root-element>weblogic-web-app</root-element>
    <uri>WEB-INF/weblogic.xml</uri>
    <variable-assignment>
         <name>ThundercatCookieName</name>
         <xpath>/weblogic-web-app/session-descriptor/cookie-name</xpath>
    </variable-assignment>
    <variable-assignment>
         <name>ThundercatCookieDomain</name>
         <xpath>/weblogic-web-app/session-descriptor/cookie-domain</xpath>
    </variable-assignment>
    </module-descriptor>
    </module-override>
    </deployment-plan>
    We've tried a lot of combinations of namespaces and such to try and get it to work, and it always spits out the same error....
    Thanks,
    Tim

    Hi Folks -
    Below is the weblogic.xml (or at least one version of it).
    We're trying to override the session-descriptor cookie-name and cookie-domain ...
    Thanks!!
    Tim
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
    <context-root>home</context-root>
    <jsp-descriptor>
    <page-check-seconds>-1</page-check-seconds>
    <precompile>true</precompile>
    <precompile-continue>true</precompile-continue>
    <verbose>false</verbose>
    <print-nulls>false</print-nulls>
    </jsp-descriptor>
    <session-descriptor>
         <cookie-name>JSESSIONID_THUNDERCAT</cookie-name>
         <cookie-domain>.tservicesq.com</cookie-domain>
    </session-descriptor>
    <library-ref>
    <library-name>wlp-tools-visitor-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-commonui-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-services-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-framework-full-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>p13n-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>beehive-controls-1.0-war</library-name>
    <specification-version>1.0</specification-version>
    <implementation-version>1.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>weblogic-controls-1.0-war</library-name>
    <specification-version>1.0</specification-version>
    <implementation-version>1.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-wsrp-producer-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-lookandfeel-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-light-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-framework-common-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wlp-framework-struts-1.2-web-lib</library-name>
    <specification-version>9.2.0</specification-version>
    <implementation-version>9.2.1</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>struts-1.2</library-name>
    <specification-version>1.2</specification-version>
    <implementation-version>1.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>wls-commonslogging-bridge-war</library-name>
    <specification-version>1.0</specification-version>
    <implementation-version>1.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>jstl</library-name>
    <specification-version>1.1</specification-version>
    <implementation-version>1.1.2</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>beehive-netui-resources-1.0</library-name>
    <specification-version>1.0</specification-version>
    <implementation-version>1.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>beehive-netui-1.0</library-name>
    <specification-version>1.0</specification-version>
    <implementation-version>1.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>QwestCmsLibrary</library-name>
    <specification-version>1.0</specification-version>
    <implementation-version>1.3.4.2</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>SIWebPortal.war</library-name>
    </library-ref>
    <library-ref>
    <library-name>StylesWebPortal.war</library-name>
    <specification-version>2.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>ShopWebPortal.war</library-name>
    <specification-version>1.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>ProfileWebPortal.war</library-name>
    <specification-version>1.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>CommonsWebPortal.war</library-name>
    <specification-version>1.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>EBillWebPortal.war</library-name>
    <specification-version>1.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>EPayWebPortal.war</library-name>
    <specification-version>1.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    <library-ref>
    <library-name>AdminWebPortal.war</library-name>
    <specification-version>2.0.0</specification-version>
    <implementation-version>1.0.0</implementation-version>
    </library-ref>
    </weblogic-web-app>

  • How can we use Bounded Taskflow in another project.

    Greetings!
    Suppose we have 2 projects: projectA and projectB.
    In projectB we have 4 bounded taskflows: T1, T2, T3, T4.
    In projectA we have a view with a dynamic region, text input for digits and a command button.
    How can we fill our dynamic region with taskflows from projectB, by typing a number of it and pressing a button.
    Thank you.

    Hi,
    Yes, I know.
    However, I'm under the impression that this is not the preferred method. All the documentation describe the ADF library method and I cannot find any description about putting them in a separate project.
    All said, it seems to kind of work, using the 'jar dependencies', except for taskflows with a nested taskflow from another project. An I still need to import them as adf library.
    We'd like to develop our taskflows separately using a short development lifecycle. Putting each of them in a separate application and publish and import them in the main application seems to be too complicated and takes to much time, everytime.
    Am I correct that the shortest development lifecycle is to have all the taskflows in our webapplication, and have full debug and hot-swap functionality?
    Ciao
    Aino

  • Parse THIS!!!  XML can't contain HTML (anchor tags)????

    Is there a way to parse XML that has HTML tags and special characters within it?
    <br><br>
    I've been searching for days for a solution with no joy.
    <br>
    The Oracle scripts I wrote below work fine as long as only alphanumeric characters are in the XML doc.
    <br><br>
    Here's what I'm doing...I'm page scraping several dynamic websites using ColdFusion. I remove all the unneeded HTML...and replace the remaining HTML with XML tags.
    <br><br>
    I then want to pass this XML (see below) variable (cfxml) to Oracle so it can be parsed and loaded into the database. If I remove the anchor tags and the CDATA tags...the code works fine....but I want the anchor tags loaded into my table.
    <br><br>
    Anyone have any suggestions....preferably a solution so I can stop pulling my damn hair out.
    <br><br>
    <br>
    Oracle Scripts<br>
    <br>
    create or replace procedure LoadXML (cfxml in varchar) AS
    <br>
    begin<br>
         insert into JOBS (xmldoc) values <br>(xmltype.createxml(cfxml));<br>
    end;
    <br><br>
    create or replace trigger job_bifert as<br>
    begin<br>
    if (:new.xmldoc is null) then<br>
    return;<br>
    end if;<br>
    select <br>
    xmltype.getstringval(:new.xmldoc.extract('/recordset/row/title/text()')),<br>
    xmltype.getstringval(:new.xmldoc.extract('/recordset/row/company/text()')),<br>
              xmltype.getstringval(:new.xmldoc.extract('/recordset/row/location/text()'))<br>
    into :new.title, :new.company, :new.location<br>
    from dual;<br>
    end;<br>
    <br>
    <br>
    Sample XML being sent to Oracle via ColdFusion
    <br>
    <br>
    <?xml version="1.0" encoding="iso-8859-1"?><br>
    <recordset><br>
    <row><br>
    <date><br>
    <![CDATA[
                Jul 27
              ]]><br>
    </date><br>
    <title><br>
    <![CDATA[
                < a href="http://jobsearch.monster.com:80/getjob.asp?JobID=32472300&AVSDM=2005%2D07%2D28+02%3A36%3A26&Logo=1&q=cold fusion&cy=US&sort=dt">ASP.NET Technical Program Manager with Marketing Savvy< /a>
              ]]><br>
    </title><br>
    <company><br>
    <![CDATA[
                Excell Data
              ]]><br>
    </company><br>
    <location><br>
    <![CDATA[
                < a onClick="popMMLL('WA','Redmond'); return false;" href="http://jobsearch.monster.com:80/896">WA-Redmond< /a>
              ]]><br>
    </location><br>
    </row><br>
    </recordset>

    Hi:
    You can parse HTML tags inside the Database using JTidy library.
    Load JTidy to the sys schema using loadjava with grant to public or into your own schema.
    The you can parse HTML tags in a CDATA section creating a Tidy parser. Look at this code as example, its part of DBPrism CMS XForms actions and it process an HTMLArea HTTP Post action. See the method updateContent(CLOB post_xml):
    http://cvs.sourceforge.net/viewcvs.py/dbprism/cms-2.1/src/com/prism/cms/frontend/PageActions.java?rev=1.5&view=auto
    The CLOB arguments is an XML XForm instance document, the content node has the HTML tags to be parsed wrapped by CDATA tags:
    So the String content are the HTML tags.
    Once the document is parsed by JTidy it is converted to a valid XML and it will be accepted by the XMLType instance.
    Best regards, Marcelo.

  • FormMetaData.xml - can't make usr_lock not visible

    Hi,
    I'm trying to take the AttributeRef of usr_lock out from under the user management from formmetadata.xml. However after i restart jboss and trying to manage->search->view user it gives me a "system error encountered".
    Does anyone know why usr_lock can not be taken out of the form display under user management in formmetadata.xml
    kind regards,

    Hi,
    You can remove required field from FormMetaData.xml else it will give you system error.If you want to remove it then you will have to modify jsps to do so.
    Regards
    Nitesh

  • Help!xml can't transform property

    I want to transform xml using xslt and I download jakarta's xalan.But I find it seems has some problem.So I write a class to test the xalan package.My code is:
    /////////////////////////////////Test30.java///////////////////////////////////////
    import org.apache.xalan.xslt.XSLTProcessor;
    import org.apache.xalan.xslt.XSLTResultTarget;
    import org.apache.xalan.xslt.XSLTInputSource;
    import org.apache.xalan.xslt.XSLTProcessorFactory;
    //import com.lotus.xsl.*;
    import org.xml.sax.SAXException;
    import java.io.*;
    import org.xml.sax.*;
    10 public class Test30
    11 {
    12     public static void main(String[] args)
    13     {
    14          try
    15          {
    16          XSLTInputSource inputXML = new XSLTInputSource("trying1.xml");
    17          XSLTInputSource inputXSL = new XSLTInputSource("trying.xsl");
    18          XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    19          processor.process(inputXML, inputXSL, new XSLTResultTarget(System.out));
    20          }catch(Exception e)
    21          {
    22               System.out.println(e);
    23          }
    It is compiled successfully.But the console report error when I execute it.It report:"Exception in thread "main" java.lang.NoSuchFieldError: m_elemStack
    at org.apache.xalan.stree.StreeDOMBuilder.startElement(StreeDOMBuilder.j
    ava:221)
    at org.apache.xalan.stree.SourceTreeHandler.startElement(SourceTreeHandl
    er.java:525)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1488)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
    at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngin
    eImpl.java:744)
    at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:332)
    at Test30.main(Test30.java:19)"
    I test it in servlet and the problem is the same as this.
    I don't know why this happen and I debug it all day.I can't find any error today.
    Anyone can help me? :(

    I used this example and it works fine for me :
    public static void transformXML(String xml, String xsl, OutputStream oStream)throws Exception {
    TransformerFactory tFactory = TransformerFactory.newInstance();
    if(tFactory.getFeature(DOMSource.FEATURE) && tFactory.getFeature(DOMResult.FEATURE)) {
    //Instantiate a DocumentBuilderFactory.
    DocumentBuilderFactory dFactory = DocumentBuilderFactory.newInstance();
    // And setNamespaceAware, which is required when parsing xsl files
    dFactory.setNamespaceAware(true);
    //Use the DocumentBuilderFactory to create a DocumentBuilder.
    DocumentBuilder dBuilder = dFactory.newDocumentBuilder();
    //Use the DocumentBuilder to parse the XSL stylesheet.
    Document xslDoc = dBuilder.parse(xsl);
    // Use the DOM Document to define a DOMSource object.
    DOMSource xslDomSource = new DOMSource(xslDoc);
    // Set the systemId: note this is actually a URL, not a local filename
    xslDomSource.setSystemId(xsl);
    // Process the stylesheet DOMSource and generate a Transformer.
    Transformer transformer = tFactory.newTransformer(xslDomSource);
    //Use the DocumentBuilder to parse the XML input.
    Document xmlDoc = dBuilder.parse(xml);
    // Use the DOM Document to define a DOMSource object.
    DOMSource xmlDomSource = new DOMSource(xmlDoc);
    // Set the base URI for the DOMSource so any relative URIs it contains can
    // be resolved.
    xmlDomSource.setSystemId(xml);
    // Create an empty DOMResult for the Result.
    DOMResult domResult = new DOMResult();
    // Perform the transformation, placing the output in the DOMResult.
    transformer.transform(xmlDomSource, domResult);
    //Instantiate an Xalan XML serializer and use it to serialize the output DOM to System.out
    // using a default output format.
    Serializer serializer = SerializerFactory.getSerializer(OutputProperties.getDefaultMethodProperties("xml"));
    serializer.setOutputStream(oStream);
    serializer.asDOMSerializer().serialize(domResult.getNode());
    } else {
    throw new org.xml.sax.SAXNotSupportedException("DOM node processing not supported!");
    }

  • Can see the bounding box of the object present on the art-board but the colors of that object are not visible!!!! Why???

    I have made some objects in 8-bit design style using rectangular grid tool.
    I was working on the file, and i saved the file, and then illustrator crashed, and all the data in the 8 bit grid wasn't showing up, only the bounding boxes(rectangular-grid) of those 8-bit designed objects were present with no color/no fill.
    I am attaching some screenshots and jpegs to show how it was before and how it is now.
    Can somebody help me out in this?

    Illustrator crashed when saving and most probably took some of your file with it.
    Do you have a backup copy?

  • Web.xml - can't get the url from xml file..

    Hi all,
    Im a beginner @ jsp =)
    My question is as follow..I cant get base from the web.xml file.
    This is a shorten version of my web.xml..
    <web-app>
         <welcome-file-list>
    <welcome-file>Default.jsp</welcome-file>
    </welcome-file-list>
         <!-- Define the controller servlet -->
         <servlet>
              <servlet-name>ControllerServlet</servlet-name>
              <servlet-class>ControllerServlet</servlet-class>
              <!-- Define initial parameters that will be loaded into
              the ServletContext object in the controller servlet -->
         <init-param>
                   <param-name>base</param-name>
                   <param-value>http://localhost:8080/burnaby/ControllerServlet</param-value>
              </init-param>
    </servlet>
         <servlet-mapping>
    <servlet-name>ControllerServlet</servlet-name>
    <url-pattern>/ControllerServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    And my jsp file:
    <%
         String base = (String) application.getAttribute("base");
         String imageUrl = (String) application.getAttribute("imageUrl");
    %>
    <table width="740" cellpading="0" height="75" cellspacing="0" border="0">
         <tr>
              <td align="left" bgcolor="#F6F6F6">
                   <font face="Verdana" size="3">Sky's E-mall!</font>
              </td>
              <td align="right" bgcolor="#F6F6F6">
                   <a href="<%=base%>?action=displayShoppingCart"><img border="0" src="<%=(imageUrl + "cart.gif" )%>"></a>
                   ���
              </td>
         </tr>
    </table>
    I have written it of a book im reading and i cant get it to work. Base and imageUrl always become null.
    thank you
    /Robert

    I'm a little new to JSPs and servlets too, but I'll give this one a shot. I think since your variables like 'base' are servlet initial parameters, they don't get initialized until you actually call the servlet ( I'm not 100% on this, though). Try calling the servlet and having it forward the response back to your original JSP and see if you get values then.

  • XI PROXY - FILE, hex rep of spaces are # signs in ABAP, XML can not parse

    Hello
    I have a proxy to file scnerio in which I am setting up the data for a length delimited flat file to send to a vendor via XI.
    I cannot use the DT/MT becuase of the complex file data structure I am working with to specify the columns and its length in XI.
    So i have a proxy which has one long string with syhex02 -> '00a0' in place of all the spaces between the fields.
    When I create the flat file straight from the program to the desktop, the file looks as it should.  When i try to feed it through XI, the XML parser chokes becuase it sees # signs in place of spaces.
    I've tried hard coding ' ' for spaces, but in the hex editor, it sees it as 20's instead of 00's.
    Please help from ABAP turning my hex spaces into '#' signs.
    thank you.

    Hex representation of horizontal tab space is #
    Implies ' ' or space is not represented as #.
    Check if this helps.
    Regards,
    Karthik

  • Changed in orion-ejb-jar.xml - can I deploy that jar without restart?

    Hi,
    When I modify orion-ejb-jar.xml and restart the server, it sees that it has changed, and redeploys that ejb jar.
    Is it possible to do this without a restart?
    Roxanne

    I use jdeveloper 903 version to create only one entity bean, and set the force-update=true in the orion-ejb-jar.xml, when verify it, it is ok, when deploy it to the oc4j 903 version, it throws error message.
    you may try it using jdeveloper 9.0.3 version.

  • Submitting form data as XML - Can you edit the node structure?

    Hi guys,  I was wondering if there was a way to edit the node structure of an xml file [submitted via a form through email], instead of what livecycle creates by default; or, is it a case that once you select 'submit As: XML Data (XML)' - it's out of your hands?  Thanks in anticipation for any help / suggestions. Cheers Dyr

    Thanks Dallas -- all sorted now with
    your advice . Cheers Dyr

  • Sun-acc.xml - can't auth to ejb

    hi
    i cannot auth successfully to the server ejb, which access is controlled by server container thru deployment descriptors. if i understand correctly, i should be able to tell the client side container to send to the server my credentials listed in sun-acc.xml. but the problem is that the realm is never picked up (always reported as "default" instead of "file" in the logs). here is the sun-acc.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE client-container SYSTEM
         "file:///C:/Sun/AppServer7/lib/dtds/sun-application-client-container_1_0.dtd">
    <client-container send-password="true" >
         <target-server      name="localhost" address="localhost" port="3700" />            
         <client-credential realm="file" user-name="syncFes" password="abc123"  />
         <log-service file="D:/TempFTP/client.log" level="FINEST"/>
    </client-container> and here is the logs
    <code>
    &#32048;&#32251;: No SAS context element found in service context list
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.iiop.security.SecClientRequestInterceptor setreplyStatus
    &#32048;&#32251;: Status to be set : 0
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.iiop.security.SecurityServiceImpl receivedReply
    &#32048;&#32251;: Passed status
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.iiop.security.SecClientRequestInterceptor setreplyStatus
    &#32048;&#32251;: Invoked receivedReply()
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.appclient.AppContainer preInvoke
    &#32048;&#32251;: Callback Handler:null
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.appclient.AppContainer preInvoke
    &#36039;&#35338;: ACC007: Initiating Login ...
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.security.auth.LoginContextDriver$10 run
    &#32048;&#32251;: LCD post login subject :&#20027;&#38988;&#65306;
         Principal: user1
         &#31169;&#20154;&#25480;&#27402; Realm=default Username=user1 Password=******** TargetName = [B@7e8c4d
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.security.auth.LoginContextDriver postClientAuth
    &#32048;&#32251;: In LCD user-pass login:syncFes realm :default
    2004/11/16 &#19979;&#21320; 03:04:39 com.sun.enterprise.naming.NamingManagerImpl bindObjects
    &#32048;&#32251;: Binding name:`java:comp/env/SMCPhoneBookEJB`
    2004/11/16 &#19979;&#21320; 03:04:39 com.iplanet.ias.appclient.Main <init>
    &#36039;&#35338;: ACC009: Load Application Class: [hk.com.smartone.addressbook.test.TestApiClient]
    2004/11/16 &#19979;&#21320; 03:04:40 com.sun.corba.ee.internal.iiop.ConnectionTable getConnection
    &#26368;&#32048;&#32251;: Connection Table GetConnection Called
    2004/11/16 &#19979;&#21320; 03:04:40 com.sun.corba.ee.internal.iiop.ConnectionTable getConnection
    </code>
    did i miss anything in the configuration?

    This looks like the usual TNSListener not running problem. I use a datasource for that and don't specify the connection details directly... Could be tested independently.
    --olaf                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Output type to print pending schedule lines only

    Hi, Is there a standard Output type to print only pending schedule lines thru ME9E, with the respective delivery date, schedule Qty, delivered Qty and pending Qty, Please revert. Thanks & Regds, Ritesh

  • IOS4 upgrade. Phone stuck on portrait mode

    Did the upgrade on 2 month old 3gs and now the keyboard, photo view etc only works in the vertical position, not horizontal. I'm new to apple land - anyone had this problem?

  • Controlling workflow triggering

    Hi I have a workflow for PO approval release process. It gets triggered whenever a new PO is created and whenever a PO is modified. But I want a control on the workflow, when there is a change in the existing PO. In otherwords if change in the total

  • Exchange 2007 - Setup POP3 access

    We are currently running Exchange 2007 server. Users request for access via Outlook from home computers. Can someone point me in the direction to accomplish this? I've enabled POP and IMAP on the server, but not sure where to setup Incoming and Outgo

  • New to Mac, How to backup my system?

    Hi, I was recently given a non-working G4 400 (PCI) PowerPC. Up until receiving this Mac I had never actually seen one in real life... PCs dominate over here in the UK. I'm a CompTIA A+ Certified PC Technician so have no problems working with hardwar