struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitrios Christodoulakis <dimi....@gmail.com>
Subject Re: studying struts2 framework, ActionInvocation question
Date Thu, 23 Jul 2009 12:51:37 GMT
Just another thought I had this morning.

Usually the framework is rather transparent to the struts user who
only creates actions with their corresponding results and run the
application on a server. I mean if the user doesn't have to customize
anything, create an interceptor, or even bother with session objects,
they might not encounter Proxy, Action Invocation, or Invocation
Context at all in their own code.

But, of course, those objects are part of the framework, and they must
be instantiated and initialized without such user even knowing about
it. Which means that initialization happens within the framework
itself, and not in the user's code necessarily, right?

So putting a breakpoint in the constructor of my
intercept(ActionInvocation actionInvocation) method, possibly won't
show me much, right? I have yet to try it, but this was just a
thought.

On Wed, Jul 22, 2009 at 8:59 PM, Musachy Barroso<musachy@gmail.com> wrote:
> an easier way, is to install the maven plugin for eclipse, and then
> checkout the struts 2 code, and import apps/blank/pom.xml as a maven
> project. Then you can run and debug it from eclipse without having to
> download any code.
>
> musachy
>
> On Wed, Jul 22, 2009 at 6:23 PM, Dimitrios
> Christodoulakis<dimi.chr@gmail.com> wrote:
>> Thanks Dave and Martin. I learn something new every time!
>>
>> I was able to attach the source to struts2-core-2.1.6.jar and
>> xwork-2.1.2.jar by first downloading the source code and pointing to
>> the it from within eclipse.
>>
>> project->right click->properties->Java build path->Libraries->select
>> jar->Source Attachment->edit
>>
>> I will try the breakpoint next. I hope eclipse can trace a breakpoint
>> all the way to at least classes within those jars. Attaching code to
>> each and every jar in the project sounds a bit tedious. I mean I
>> manually downloaded the source and attached it. So for all other jars,
>> spring, hibernate, commons, etc -- should take a long time. Unless it
>> could be done automatically by eclipse, but I am not sure. Probably
>> not
>>
>> On Wed, Jul 22, 2009 at 8:11 PM, Martin Gainty<mgainty@hotmail.com> wrote:
>>>
>>> unless someone redesigned Eclipse breakpoint wont be able to see a class packaged
in the jar *at least with ganymede*
>>> stick with debug algorithm's mentioned earlier
>>> (main focus would be to debug action initialisation as dave mentioned)
>>> ...
>>> 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.
>>>
>>>
>>>
>>>
>>>> Date: Wed, 22 Jul 2009 19:49:23 -0500
>>>> Subject: Re: studying struts2 framework, ActionInvocation question
>>>> From: dimi.chr@gmail.com
>>>> To: user@struts.apache.org
>>>>
>>>> Dave Newton wrote:
>>>> >
>>>> > Won't help track action invocation initialization, methinks.
>>>> >
>>>>
>>>> Is there a particular way you would recommend to go about doing it
>>>> actually? I am using eclipse for my ide, but I am not sure if
>>>> breakpoints can trace through the compiled classes in the jars.
>>>>
>>>> Much appreciate the advice.
>>>>
>>>> On Wed, Jul 22, 2009 at 7:44 PM, Dave Newton<newton.dave@yahoo.com>
wrote:
>>>> > Martin Gainty wrote:
>>>> >>
>>>> >> does vi have breakpoints.. am i missing something?
>>>> >
>>>> > ....
>>>> >
>>>> > In this case you actually saw something nobody else did--a vi reference.
>>>> >
>>>> >> 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.
>>>> >
>>>> > Won't help track action invocation initialization, methinks.
>>>> >
>>>> > Dave
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> > For additional commands, e-mail: user-help@struts.apache.org
>>>> >
>>>> >
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>
>>> _________________________________________________________________
>>> Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics.
Check it out.
>>> http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message