Click to See Complete Forum and Search --> : Can this Java be running on the client?


cusimar9
04-23-2009, 05:06 AM
Hi,

I've taken over a website which is written in JSP. It calculations a number of things using Flash and Javascript, but one of the main calculation is contained within a Java class.

Now as I understand it, only JavaScript, Flash and ActionScript run on the client, everything else must be running on the server.

However I wonder if someone could confirm whether or not that is the case for the following code snippet.

The code below loads the main Java class into a Bean, and performs some calculations on it:


<?xml version="1.0" encoding="ISO-8859-1"?>
<%@ page contentType="text/xml;charset=ISO-8859-1" %>

<%@page import="GY.Info"%>

<jsp:useBean id="info" scope="application" class="GY.Info"/>
<jsp:setProperty name="info" property="*"/>

<%

info.Result();

... Retrieve Result ...

%>

... Output Result ...


Is this definitely running on the Server? Could it be made to run on the client and if so, how?

chazzy
04-23-2009, 05:10 AM
applets run on the client.

cusimar9
04-23-2009, 05:43 AM
So in order for the above to run on the client machine it has to be called from within an applet?

And I presume its fairly straightforward to setup input/output parameters for applets?

Can an applet be called from within a Flash file?

chazzy
04-23-2009, 06:49 AM
applets are like flash files, they're viewed in the browser.requires the JVM to be on the client machine.