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?
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?