本文介绍了从另一个光辉的框架,什么是Jshooter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁可以告诉我使用jshooter的主要目的是什么?

就像RMI吗?像CORBA吗?是或多或少?

这是此文档的链接.阅读并说出您的意见

http://SourceForge.net/projects/shine-enterpris/files/ [ ^ ]

tnx

who can tell me what is the main purpose of using jshooter?

is it like RMI ? is it like CORBA ? It is more or less ?

here is the link of this document.read it and say ur opinion

http://SourceForge.net/projects/shine-enterpris/files/[^]

tnx

推荐答案



jsp pages:

----------------index.jsp---------------

<pre lang="xml"><%@ page contentType="text/html;charset=windows-1256"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
    <title>untitled</title>
  </head>
  <body>
    <form action="servlet/client.Caller" method="get">
      <input type="submit" value="view list of server's class mathods"/>
    </form>
  </body>
</html>




------------- callMethod.jsp --------------




-------------callMethod.jsp--------------

<%@ page contentType="text/html;charset=windows-1256"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
    <title>untitled</title>
  </head>
  <body>
    <P>call one of methods:</P>
    <form action="servlet/client.Caller" method="get">
      <P>Method name:
        <input type="text" name="method_name"/>
      </P>
      <P>
        <input type="submit" value="Call"/>
      </P>
    </form>

  </body>
</html>




---------------- response.jsp ----------------

<%@页面import ="java.util.ArrayList"<>
<%@ taglib uri ="/WEB-INF/maplet.tld" prefix ="maplet"<>







<%
字符串a = request.getParameter("methods");
String [] b = a.split(&");
for(int i = 0; i out.print(b +"
);
}
<>



< iframe src ="CallMethod.jsp" frameborder ="0">


<%= request.getParameter("method_name")<>的输出方法:

<%= request.getParameter("return_value")<>

无法访问



班级:

客户端软件包:

--------------- caller.java ------------

<%@页面import ="java.util.ArrayList"<>
<%@ taglib uri ="/WEB-INF/maplet.tld" prefix ="maplet"<>







<%
字符串a = request.getParameter("methods");
String [] b = a.split(&");
for(int i = 0; i out.print(b +"
);
}
<>



< iframe src ="CallMethod.jsp" frameborder ="0">


<%= request.getParameter("method_name")<>的输出方法:

<%= request.getParameter("return_value")<>

无法访问



服务器软件包:

-------------- Distributer.java ----

包服务器;

导入org.j2os.shine.jshooter.*;


公共类分配器{
公共静态void main(String [] arg)引发异常{
应用程序app = new Application();
app.distribute(1099,"firstApp");
}
}

------------- SourceClass.java ----

包服务器;

公共类SourceClass
{

公共字符串helloWorld(){
返回"Hello World!";
}
公共字符串byeEverybody(){
返回再见!";
}

}




----------------response.jsp----------------

<%@ page import="java.util.ArrayList"<>
<%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"<>







<%
String a=request.getParameter("methods");
String[] b=a.split("&");
for(int i=0;i out.print(b+"
");
}
<>



<iframe src="CallMethod.jsp" frameborder="0">


output of <%=request.getParameter("method_name")<> method:

<%=request.getParameter("return_value")<>

No Access



Classes:

client package:

---------------caller.java------------

<%@ page import="java.util.ArrayList"<>
<%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"<>







<%
String a=request.getParameter("methods");
String[] b=a.split("&");
for(int i=0;i out.print(b+"
");
}
<>



<iframe src="CallMethod.jsp" frameborder="0">


output of <%=request.getParameter("method_name")<> method:

<%=request.getParameter("return_value")<>

No Access



server package:

--------------Distributer.java----

package server;

import org.j2os.shine.jshooter.*;


public class Distributer {
public static void main(String[] arg) throws Exception {
Application app = new Application();
app.distribute(1099, "firstApp");
}
}

-------------SourceClass.java----

package server;

public class SourceClass
{

public String helloWorld() {
return "Hello World!";
}
public String byeEverybody() {
return "bye bye!";
}

}


这篇关于从另一个光辉的框架,什么是Jshooter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 21:36