Something I thought I should share.
So you have a JAVA CFX tag that you call with
<CFX_MyTestObject server="" path="" date="" debug="">
You can add this method to the class for command line testing.....
(I recommend that you use System.out.println when in debug to give yourself some
output)
(it would also be wise to perhaps use the args array from the command line call.
----------------------------------------------------
public static void main (String[] args) {
MyTestObject testObject = new MyTestObject();
Hashtable theParams = new Hashtable();
theParams.put( "server", "SPAM");
theParams.put( "path", "/usr/local/myapp/");
theParams.put( "date","now");;
theParams.put( "debug", "1");
Request request = new DebugRequest(theParams);
Response response = new DebugResponse();
try {
testObject.processRequest(request,response);
} catch (Exception e) {
e.printStackTrace();
}
}
----------------------------------------------------
This message has been sent from CFdeveloper with username StevenHarper
([EMAIL PROTECTED])
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]