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

 

    摘要:我刚接触jsp,试着连接数据库,但去总出错,请大家指教<%@ page contenttype="text/html;charset=gb2312"%> <%@ page import="java.sql.*"%> <html> <body> <%class.forname( "com.micr......
    摘要:( from csdn njchenyi 的 blog )一、static   请先看下面这段程序: public class hello{ public static void main(string[] args){ //(1) system.out.println("hello,world!"); //(2) } }  看过这段程序,对于大多数学过java 的从来说,都不......


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; 【程序编程相关:Java Inner Class

服务器: helloi.java

package demo.ice.hello.server; 【推荐阅读:MySprite 2.0

    /* (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);    } 【扩展信息:关于Log4j比较全面的配置

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

}

helloserver.java

 package demo.ice.hello.server;

import ice.localexception;


...   下一页
    摘要: 这篇文章主要说的是在hibernate中的组件(component)映射,可以参考hibernate官方文档的第7章。至于环境设置,可以参考这个系列的前面几篇文章。 1. 创建项目 · 新建一个java项目:componentmapping,注意选中“创建单独的源文件夹和输出文件夹”,同时添加“用户库”:hibernate。 2. 编......
» 本期热门文章:

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