Re: [object] tag continued

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62449
interpreted = N
texte = Here is how my file structure is setup: Folder: com Folder: worldpac Folder: dca All the DCA Class Files Folder: fulfillment All the Fulfillment Class Files worldpac_fulfillment.jar - I unzipped this to give the above file structure WorldPac.java Worldpac.class test.html WorldPac.java, which I compiled into WorldPac.class has the following code. If I run it from the command line, it works fine and gets to the initializing order part no problem. When I run it from the object code, nothing shows up. If I remove this line: Notice, there are no parameters I need to pass to make this work. The code to execute the object from WebDNA is: [object objname=WorldPac&call=Body&type=1&classpath=][/object] -------------------------------------------------------------- import com.worldpac.fulfillment.*; import com.worldpac.dca.ServerException; import java.util.*; public class WorldPac { public static void main(String[] args) { String result; Fulfiller fulfiller = new Fulfiller(); System.out.print("Initializing fulfiller..."); result = fulfiller.initialize("aaaa", 2009, "yyyy", "xxxx"); if (result != null) System.out.println(result); Order order = new Order(); System.out.print("Initializing order..."); result = order.initialize(fulfiller.getID(), "Barney Rubble", "123 Main St.", "", "Los Angeles", "CA", "90036", "UPG", "My PO#123"); if (result != null) System.out.println(result); System.out.println(order.getOrderID());  System.exit(0); } public static String Body (String []args, int []type) { String result; Fulfiller fulfiller = new Fulfiller(); System.out.print("Initializing fulfiller..."); result = fulfiller.initialize("aaaa", 2009, "yyyy", "xxxx"); Order order = new Order(); System.out.print("Initializing order..."); result = order.initialize(fulfiller.getID(), "Barney Rubble", "123 Main St.", "", "Los Angeles", "CA", "90036", "UPG", "My PO#123"); if (result != null) System.out.println(result); System.out.println(order.getOrderID());  return result + " x"; } } -------------------------------------------------- On Jul 5, 2005, at 7:10 PM, Stuart Tremain wrote: > could be that some of your params are wrong > > Post ya code and I will have a look. > > > Stuart Tremain > idfk web developments, sydney, australia > > On 06 Jul 2005, at 11:53 AM, Jesse Proudman wrote: > >> Ok, >> >> After muddling through the mailing list archive, I found the two >> things I needed to add to my WebCatalog Prefs file to get Java to >> load. NOTE TO SMITH MICRO: Add these lines to the online docs for >> each OS. >> >> Now my problem is that a program that runs just fine through the >> command line returns nothing when I try to run it through the >> [object] call. I don't get any error messages, and it doesn't return >> what it should. >> >> Ideas? >> >> -- >> >> Jesse Proudman >> Blue Box Group, LLC >> >> p. +1.800.613.4305 x801 >> e. jesse@blueboxgrp.com >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > -- Jesse Proudman Blue Box Group, LLC p. +1.800.613.4305 x801 e. jesse@blueboxgrp.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [object] tag continued ( Jesse Proudman 2005)
  2. Re: [object] tag continued ( Stuart Tremain 2005)
  3. [object] tag continued ( Jesse Proudman 2005)
Here is how my file structure is setup: Folder: com Folder: worldpac Folder: dca All the DCA Class Files Folder: fulfillment All the Fulfillment Class Files worldpac_fulfillment.jar - I unzipped this to give the above file structure WorldPac.java Worldpac.class test.html WorldPac.java, which I compiled into WorldPac.class has the following code. If I run it from the command line, it works fine and gets to the initializing order part no problem. When I run it from the object code, nothing shows up. If I remove this line: Notice, there are no parameters I need to pass to make this work. The code to execute the object from WebDNA is: [object objname=WorldPac&call=Body&type=1&classpath=][/object] -------------------------------------------------------------- import com.worldpac.fulfillment.*; import com.worldpac.dca.ServerException; import java.util.*; public class WorldPac { public static void main(String[] args) { String result; Fulfiller fulfiller = new Fulfiller(); System.out.print("Initializing fulfiller..."); result = fulfiller.initialize("aaaa", 2009, "yyyy", "xxxx"); if (result != null) System.out.println(result); Order order = new Order(); System.out.print("Initializing order..."); result = order.initialize(fulfiller.getID(), "Barney Rubble", "123 Main St.", "", "Los Angeles", "CA", "90036", "UPG", "My PO#123"); if (result != null) System.out.println(result); System.out.println(order.getOrderID());  System.exit(0); } public static String Body (String []args, int []type) { String result; Fulfiller fulfiller = new Fulfiller(); System.out.print("Initializing fulfiller..."); result = fulfiller.initialize("aaaa", 2009, "yyyy", "xxxx"); Order order = new Order(); System.out.print("Initializing order..."); result = order.initialize(fulfiller.getID(), "Barney Rubble", "123 Main St.", "", "Los Angeles", "CA", "90036", "UPG", "My PO#123"); if (result != null) System.out.println(result); System.out.println(order.getOrderID());  return result + " x"; } } -------------------------------------------------- On Jul 5, 2005, at 7:10 PM, Stuart Tremain wrote: > could be that some of your params are wrong > > Post ya code and I will have a look. > > > Stuart Tremain > idfk web developments, sydney, australia > > On 06 Jul 2005, at 11:53 AM, Jesse Proudman wrote: > >> Ok, >> >> After muddling through the mailing list archive, I found the two >> things I needed to add to my WebCatalog Prefs file to get Java to >> load. NOTE TO SMITH MICRO: Add these lines to the online docs for >> each OS. >> >> Now my problem is that a program that runs just fine through the >> command line returns nothing when I try to run it through the >> [object] call. I don't get any error messages, and it doesn't return >> what it should. >> >> Ideas? >> >> -- >> >> Jesse Proudman >> Blue Box Group, LLC >> >> p. +1.800.613.4305 x801 >> e. jesse@blueboxgrp.com >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > -- Jesse Proudman Blue Box Group, LLC p. +1.800.613.4305 x801 e. jesse@blueboxgrp.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Jesse Proudman

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Emailer file formats (1998) WebCat for Unix?? (1997) Help name our technology! (1997) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) [object] Tag & WebDNA Support (2005) Summing fields (1997) Re:How to Display text in empty fields (1997) Does TCPconnect/TCPsend do multiples? (2000) Help getting [shownext] to increment (2003) Installing 4.5 under 10.2 (2002) Mail Lists (1998) Linebreak as a delimiter in listwords? (2003) A sendmail warning (2005) shipcost (1997) Major bug report on rootbeer (1997) Formating Tables w/[founditems] (1998) Other then credit cards-how? (1997) WebTen and WebCat (1997) Search/sort in URL Was: GuestBook example (1997) unsubscribe (2000)