Yeah, it is REST plugin related. At the moment a result is mandatory
(enforced by xwork) even though many of the restful operations its
meaningless to declare a result.. In those cases its also inappropriate
to use to ServletRedirectResult so a NullResult can be used.
However, you're right it does not need to be the default for all apps
and it's better to go with consistency.
It's my intention to make results non-mandatory when in the restful
mode. ie. mandatory only when the response needs to invoke result.
Musachy Barroso wrote:
I am guessing(wild guess) it is somehow related to REST.(output xml, json etc)
musachy
On Thu, Jun 12, 2008 at 10:55 AM, dusty <[EMAIL PROTECTED]> wrote:
+1 for identical default behavior between XML and Annotations.
Mr. Don, do you remember why you came up with the NullResult?
-D
James Holmes-2 wrote:
Not sure why there is a difference. Perhaps there's good reason? But if
not,
I'm in favor of consistency and making things the same.
Good catch.
On Thu, Jun 12, 2008 at 8:31 AM, Al Sutton <[EMAIL PROTECTED]> wrote:
Is there any reason why the default result type in struts.xml is
ServletDispatcherResult, but in Zero-Conf the default for @Result is
NullResult?
Wouldn't it make life easier for newcomers to have the defaults the same
for struts.xml and Zero-Conf?
Al.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Defaults-for-results-tp17798824p17802029.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.3.0/1498 - Release Date: 11/06/2008 7:13 PM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]