Thanks John, that was enough to get me started. I tried this and it seem to work just 
fine:

package com.pvsw.tango.jas;
import com.pvsw.tango.jas.Action;

public class JASTestClass extends Action {

    public void customProcessing(String argv[]) {

        String result;

        result = argv[0];

        setNumColumns(1);
        newRow();
        newColumn(result);
    }
}


----- Original Message ----- 
From: "John McGowan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 19, 2004 8:10 PM
Subject: Re: Witango-Talk: T2K JAS source files


| I would recommend against using the JAS.  About a year ago I was the 
| only one using it that I knew of.  Now I don't have source code for 
| Hello.class and Echo.class, but here is some source code that I wrote a 
| long time for my own JAS stuff.  If you're working on making your own 
| JAS class this should get you started.
| 
| Notice that the code is just a simple glue layer that puts the results 
| in an array format.
| 
| 
| import com.pvsw.tango.jas.Action;
| import FileSystemBean.FileSystem;
| 
| public class JASFileSystemListDir extends Action {
| 
|     public void customProcessing(String argv[]) {
| 
|         String[][] result;
| 
|         FileSystem fs = new FileSystem();
| 
|         result = fs.ListDir(argv[0]);
| 
| 
|         setNumColumns(2);
| 
|         for ( int i = 0; i < result.length ; i++ ) {
| 
|             newRow();
|             newColumn(result[i][0]);
|             newColumn(result[i][1]);
|         }
|     }
| }
| 
| 
| Lars wrote:
| 
| > *Does anybody have the source files for the Java Application Server 
| > (JAS) classes that came with Tango 2000? The User Guide says there 
| > should be sources for Hello.class and Echo.class installed in 
| > PVSW\Tango2000\java\com\pvsw\tango\jas but I can't find these.*
| > ** 
| > *I got jastest.taf to work and now need to know how to implement 
| > customProcessing and the other Action class methods that appearantly 
| > need to be used for any new classes I build.*
| > ** 
| > *Lars*
| >
| >________________________________________________________________________
| >TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
| >  
| >
| 
| ________________________________________________________________________
| TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
| 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to