Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

How to change the return of an action ?

Jonatas Gustavo Rodrigues

2007-03-14

Replies:

The DefaultActionInvocation returns only a String or a Result from an
action invocation.

Why struts does not permit the action to return something else, like an
Object ?

In this way, this object (like an UIComponent) could be used for an
registered Result object to render the result (this Tapestry).

I think the source could be more generic, flexible and extensible.

Thanks

Godoi


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.