Saurabh Bobde ha scritto:
After processing a request, the Action would simply return a null
ActionForward, like so: return (null);
One of the scenarios why/where they were doing this was, they needed to
write to the response directly.
I've seen this in Struts-Layout, where they send the elements of a
dynamic tree to the caller by writing the response directly.
(For eg, returning the contents of a file
dynamically)
For this particular case, I suggest to use DownloadAction:
http://struts.apache.org/struts-extras/apidocs/org/apache/struts/actions/DownloadAction.html
Also, the behavior they are expecting is, that by simply returning a null,
the page stays on the browser/client, and the returned response, may be
opened in another window, depending on the content-type returned.
Uh? Isn't it better to open the window with the URL connected to your
action? I mean:
window.open('action.do');
Ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]