hi!
I found a sample for Jshooter:
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--------------
<%@ 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----------------
<%@ 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!";
}
}