Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-15-2004
lovesunny lovesunny is offline
Registered User
 
 
Join Date: Apr 2004
Posts: 4
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?
Reply With Quote
  #2 (permalink)  
Old 04-16-2004
level level is offline
Registered User
 
 
Join Date: Feb 2004
Location: China
Posts: 71
Like This

int argc = 0;
communicator = Ice::initialize(argc, 0);
Reply With Quote
  #3 (permalink)  
Old 04-18-2004
lovesunny lovesunny is offline
Registered User
 
 
Join Date: Apr 2004
Posts: 4
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.