Jason van Zyl wrote:
> Can I have a copy of your helper class! That
> would be great. I think you were the one who
> was using the Blue Pacific product, have you
> had any luck in using it?
sorry for Blue Pacific, but I am using swift generator for the moment. I
may switch to another swf tool later. FYI, I have a kind of "proxy"
screen that forward the calls to swift-generator (on http, using CGI)
and returns the results in the outputStream. While perf is not an issue
for me today, it works quite well and makes easy to change the swf
generator.
here is the RawScreen. If somebody else is interested in it, I can add
it into CVS. As you can see, it is very simple. Its intention is to
improve my oo design.
Regis
/******************************************/
package myapp.modules.screens;
// license
import org.apache.turbine.modules.*;
import org.apache.turbine.modules.screens.*;
import org.apache.turbine.util.*;
import org.webmacro.servlet.*;
public abstract class RawScreen
extends Screen
{
protected final org.apache.ecs.ConcreteElement doBuild(RunData data)
throws Exception
{
data.getResponse().setContentType(getContentType(data));
doOutput(data);
return null;
}
/** Return the content type of the output
* <p> This method should be overidden to actually set the real
* content-type header of the output.
*/
protected abstract String getContentType(RunData data);
/** Actually output the dynamic content
* <p>The OutputStream can be accessed with smth like
* <pre>OutputStream out =
data.getResponse().getOutputStream();</pre>
*/
protected abstract void doOutput(RunData data)
throws Exception;
public final String getLayout(RunData data)
{
return null;
}
}
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]