does vi have breakpoints.. am i missing something?

if you need to run this outside of an ide either use Logger.debug(variable);
http://www.oracle.com/technology/products/jdev/tips/mills/Struts-logging.html

or debug
before craig and ted left (i wished they both stayed but thats another topic)
a DebuggingInterceptor was coded and is activated by
struts.devMode = true
http://struts.apache.org/2.0.14/docs/debugging.html

then address would contain ?debug=<parameter> in url should specifies either
?debug=xml or ?debug=console to the URL.

HTH
Martin Gainty 
______________________________________________ 
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.




> Date: Wed, 22 Jul 2009 14:17:50 -0700
> Subject: Re: studying struts2 framework, ActionInvocation question
> From: musa...@gmail.com
> To: user@struts.apache.org
> 
> The best way to find out all these things is to put breakpoints in the
> constructor and/or the setter methods.
> 
> musachy
> 
> On Wed, Jul 22, 2009 at 2:05 PM, Dimitrios
> Christodoulakis<dimi....@gmail.com> wrote:
> > Hello,
> >
> > According to the XWork feature description,
> > http://www.opensymphony.com/xwork/wikidocs/XWork%20Features.html, the
> > ActionInvocation represents the execution state of an action holding
> > the action instance and the interceptors.
> >
> > I have been looking at
> > http://struts.apache.org/2.1.6/struts2-core/apidocs and examining an
> > implementation of the ActionInvocation interface:
> > DefaultActionInvocation and was wondering how does this class gets a
> > hold of the action instance and the interceptors? It has relevant
> > fields like action, interceptors and proxy with getters for the action
> > and the proxy. But it is not straightforward to me how the action
> > instance (and the interceptors) are injected to it.. I didn't see
> > setter methods for the action.
> >
> > My motivation for this question comes also from wanting to unit test
> > an interceptor's intercept(ActionInvocation actionInvocation) method.
> > I will need to pass an ActionInvocation as a parameter, which then the
> > interceptor will use to extract the actual action instance from.
> > (Among other things, like the InvocationContext to get the session).
> >
> > So I was also wondering how to provide a mock-type of an
> > ActionInvocation which will contain a mock action, a mock session etc.
> > I mean I understand how to create a mock action and a mock session map
> > with some parameters in it, but how do I bind those to a mock
> > ActionInvocation? Would I need perhaps to start with a mock
> > ActionProxy?
> >
> > Thanks for your advice. This will help me design the test case and
> > also learn more about the struts2 mechanics.
> > Regards!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1

Reply via email to