model is somehwhat analogous to the legacy struts1 formbean action contains processing artifacts (such as public String execute()) ModelDriven more closely represents a large bean which can be serialized/deserialized as JSON ResultType (application/json content-type)
what does Action contain (that Model does not contan) which you want to serialize as JSON? Martin -- ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: JSON & ModelDriven > Date: Wed, 1 Jun 2011 16:48:58 -0500 > From: chris.cranf...@setech.com > To: user@struts.apache.org > > From what I have read; it appears that for an action that implements the > ModelDriven interface that the JSON result type is going to attempt to > serialized the model object to the JSON stream rather than the action. > > Is there anyway to override this so that the action is what is returned > instead of the model without changing the interface that the action > implements? > > Chris > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >