Steve, Santanu:
I think there is a small duplication of functionality in clnt-struts and
svc-fileupload-struts: ModelAction (in HEAD) can already handle binary responses (e.g.
sending an image, PDF, etc to the browser). If the ModelResponse sets the response
attribute "binary", ModelAction will look for another attribute "mimetype", and render
the contents of an output called "binary" to the browser as that mime type.
So, a model can say:
res.setAttribute("binary", "true");
res.setAttribute("mimetype", "sometype");
res.add(res.createOutput("binary", someBinaryContent));
An example of this is in svc-chart-jfreechart, which uses this technique to display
graphs and charts.
Steve: I realize this is the opposite of what you need - upload - but I thought I'd
point it out.
We should pare this down to only one way of doing things I guess - whichever seems
better. Maybe one less thing to merge? :-)
Regards,
Michael Nash
JGlobal Ltd.
http://www.jglobal.com
Bahamas Commerce and Trade
http://www.bahamascommerce.com
http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com