Archived

This forum has been archived. Please start a new discussion on GitHub.

use ice with struts

hi,

I want to inbed the ice in the struts for web use.
When in the method perform of Action. When initial the communicator
, i use the " ic = Util.initialize(args); " ,but there is no "args" in the "perform" . So how to initial a communicator in the struts? :)

Comments

  • Like This

    int argc = 0;
    communicator = Ice::initialize(argc, 0);
  • Thanks

    Now everytihing is ok.

    In java , i use "String[] args=new String[0]" to initial the args and it runs well.

    Thank you for your reply.