当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: Hello.ice#ifndef SIMPLE_ICE#defi
 

 

 ·ice 2.0学习笔记1(helloworld)     »显示摘要«
    摘要:hello.ice #ifndef simple_ice#define simple_ice//名字空间 or 包名module demo.slice.hello{ interface hello{ void printstring(string s); };};#endif服务器: helloi.javapackage demo.ice.hello.server;import demo.slic......
    摘要:我刚接触jsp,试着连接数据库,但去总出错,请大家指教<%@ page contenttype="text/html;charset=gb2312"%> <%@ page import="java.sql.*"%> <html> <body> <%class.forname( "com.micr......


ICE 2.0学习笔记1(HelloWorld)

hello.ice #ifndef simple_ice#define simple_ice//名字空间 or 包名module demo.slice.hello{ interface hello{  void printstring(string s); };};

#endif

import demo.slice.hello._hellodisp;import ice.current; 【程序编程相关:为Struts应用配置web.xml文件

服务器: helloi.java

package demo.ice.hello.server; 【推荐阅读:2005年4月8日--正式开始我的Jav

    /* (non-javadoc)     * @see demo._hellooperations#printstring(java.lang.string, ice.current)     */    public void printstring(string s, current __current) {        // todo auto-generated method stub        system.out.println(s);    } 【扩展信息:MySprite 2.0

/** * @author mudfishcn * * servant class: helloi * _hellodisp 基类由slice2java编译器生成,它是一个抽象类. * _hellodisp 抽象类包含一个printstring()方法. */public class helloi extends _hellodisp {

}

helloserver.java

 package demo.ice.hello.server;

import ice.localexception;


...   下一页
    摘要:( from csdn njchenyi 的 blog )一、static   请先看下面这段程序: public class hello{ public static void main(string[] args){ //(1) system.out.println("hello,world!"); //(2) } }  看过这段程序,对于大多数学过java 的从来说,都不......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE