Re: Use global result from another result

2015-10-07 Thread Lukasz Lenart
2015-10-07 20:26 GMT+02:00 JOSE L MARTINEZ-AVIAL :
> Hello,
>   I have a global result defined as follows:
>  type="tiles">common.error.screen.newtarget
>
> And then I have an action that can return success, and go to a specific and
> defined result, but in any other case I want the action to use the global
> result already defined. For example"
>
>  class="com.test.DownloadDocument">
> 
> documentStream
> 1024
> true
> 
> message.handled.as.newtarget
> 
>
> So if the result is anything other than success (input, error, none),for
> example due to a invalid parameter, it should use
> message.handled.as.newtarget. Is there anyway to do this?

Nope, it isn't possible but you can try to use UnknownHandler to
handle such case.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Use global result from another result

2015-10-07 Thread JOSE L MARTINEZ-AVIAL
Hello,
  I have a global result defined as follows:
common.error.screen.newtarget

And then I have an action that can return success, and go to a specific and
defined result, but in any other case I want the action to use the global
result already defined. For example"



documentStream
1024
true

message.handled.as.newtarget


So if the result is anything other than success (input, error, none),for
example due to a invalid parameter, it should use
message.handled.as.newtarget. Is there anyway to do this?

Thanks

JL