Home Help Center

use ice with struts


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? :)


  • levellevel Member ✭✭
    Like This

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

    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.
Sign In or Register to comment.