Allow Action to return null

Description

Requirement:
I would like my Action to generate and return a PDF file.

response.setContentType("application/pdf");
response.getOutputStream().write(pdfContent);

Problem:
BPM4Struts requires an outgoing transition, which results in a Struts forward.
Tomcat issues an error on the forward, saying that response.getOutputStream() has already been called.

Solution:
Don't forward from the Action, by returning 'null'.

Environment

AndroMDA RC1

Status

Assignee

MichaelM

Reporter

Johnny Macchione

Labels

None

Fix versions

Affects versions

3.0-M3

Priority

Minor
Configure