Basically it is better to reuse code via interceptors, not action base
classes. You can have a look at JSONValidationInterceptor for an example
how an interceptor can create a result.
In your case you could define an interface Exportable which actions have
to implement and your interceptor can
We are creating a base action to manage export function. This base class deals
with file name and content type.
public class public abstract class AbstractExportAction{ //Will be override
protected abstract InputStream exportInputStream() ; @Action(value = "export",
results = { @Result(name = "
2 matches
Mail list logo