/*
* Created on Mar 18, 2005
*/
package matlabRMI;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;
import rmi.*;
/**
* @author Ali KIZIL
*/
public class Engine extends BodyTagSupport{
private static final long serialVersionUID = 8331496199753507299L;
public goOnlineClient goOnlineClient;
public int doStartTag() throws JspException {
// Create goOnline object
goOnlineClient = new goOnlineClient();
// Run MATLAB
goOnlineClient.goOnlineRMI();
goOnlineClient.engineOpen();
// Use this object for all page from memory.
pageContext.setAttribute("goOnlineClient",goOnlineClient);
return EVAL_BODY_INCLUDE;
}
public int doEndTag() throws JspException {
goOnlineClient.engineClose();
return EVAL_PAGE;
}
}