read the source code

View: New views
7 Messages — Rating Filter:   Alert me  

read the source code

by mark lu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to read struts2's source code,but i found it's too complicated.
so,i want to find a book that analysis the soure code.
who can give me some suggestions?recommend some books to me?
thanks very much!!

Re: read the source code

by Wes Wannemacher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As far as I know, there are no books that specifically analyze the
source code for Struts 2. I would suggest starting by reading the
source code to Xwork. To really get a handle on what is going on,
first try to get a solid understanding of the command pattern design
pattern. Then, take a look at the xwork source to see how it is
implemented there. Once you feel comfortable at that level, take a
good look at the Servlet and JSP specifications. Then you can take a
look at the source for Struts 2. It also wouldn't hurt to take a look
at Google Guice. Although we aren't using Guice, we branched it early
on and have been using it for internal dependency injection (both in
Xwork and in Struts 2).

As you get further along, feel free to post questions on the
dev@... list.

-Wes

On Wed, Oct 28, 2009 at 3:09 AM, mark lu <liujunshan@...> wrote:

>
> I want to read struts2's source code,but i found it's too complicated.
> so,i want to find a book that analysis the soure code.
> who can give me some suggestions?recommend some books to me?
> thanks very much!!
> --
> View this message in context: http://www.nabble.com/read-the-source-code-tp26090230p26090230.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>



--
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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


Re: read the source code

by mark lu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much for your reply!
I have read some code of xwork.however,i am a littel lazy,so i want to find a book to introduce .
now that there is no book,I'll follow what you said.


Wes Wannemacher wrote:
As far as I know, there are no books that specifically analyze the
source code for Struts 2. I would suggest starting by reading the
source code to Xwork. To really get a handle on what is going on,
first try to get a solid understanding of the command pattern design
pattern. Then, take a look at the xwork source to see how it is
implemented there. Once you feel comfortable at that level, take a
good look at the Servlet and JSP specifications. Then you can take a
look at the source for Struts 2. It also wouldn't hurt to take a look
at Google Guice. Although we aren't using Guice, we branched it early
on and have been using it for internal dependency injection (both in
Xwork and in Struts 2).

As you get further along, feel free to post questions on the
dev@struts.apache.org list.

-Wes

On Wed, Oct 28, 2009 at 3:09 AM, mark lu <liujunshan@ygsoft.com> wrote:
>
> I want to read struts2's source code,but i found it's too complicated.
> so,i want to find a book that analysis the soure code.
> who can give me some suggestions?recommend some books to me?
> thanks very much!!
> --
> View this message in context: http://www.nabble.com/read-the-source-code-tp26090230p26090230.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



--
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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

Re: read the source code

by Wendy Smoak-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 28, 2009 at 6:50 PM, mark lu <liujunshan@...> wrote:
> Thank you very much for your reply!
> I have read some code of xwork.however,i am a littel lazy,so i want to find
> a book to introduce .
> now that there is no book,I'll follow what you said.

It would be great if you could write up your experience as you explore
the source code.  Maybe you'll write that book you're looking for, :)
or a series of blog posts would be fabulous.

--
Wendy

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


Re: read the source code

by Musachy Barroso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

debugging is a great tool to understanding code. try to debug the
blank application bundled with struts. Put a breakpoint in
Dispatcher.serviceAction (double check name, off the top of my head)
and debug all the way down. There is also some tools that generate
sequence diagrams at runtime, but they are kind of hard to set up.

musachy

On Wed, Oct 28, 2009 at 7:20 PM, Wendy Smoak <wsmoak@...> wrote:

> On Wed, Oct 28, 2009 at 6:50 PM, mark lu <liujunshan@...> wrote:
>> Thank you very much for your reply!
>> I have read some code of xwork.however,i am a littel lazy,so i want to find
>> a book to introduce .
>> now that there is no book,I'll follow what you said.
>
> It would be great if you could write up your experience as you explore
> the source code.  Maybe you'll write that book you're looking for, :)
> or a series of blog posts would be fabulous.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>

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


Re: read the source code

by mark lu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to write the book,however,maybe you'll be disappointed!
because i can spend very little time on reading the source code.
in the work ,i don't use the struts,so...
Thank you for your encouragement!!

Wendy Smoak-3 wrote:
On Wed, Oct 28, 2009 at 6:50 PM, mark lu <liujunshan@ygsoft.com> wrote:
> Thank you very much for your reply!
> I have read some code of xwork.however,i am a littel lazy,so i want to find
> a book to introduce .
> now that there is no book,I'll follow what you said.

It would be great if you could write up your experience as you explore
the source code.  Maybe you'll write that book you're looking for, :)
or a series of blog posts would be fabulous.

--
Wendy

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

Re: read the source code

by newton.dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mark lu wrote:
> Thank you very much for your reply!
> I have read some code of xwork.however,i am a littel lazy,so i want to find
> a book to introduce .
> now that there is no book,I'll follow what you said.

While I don't have an immediate schedule, I'm currently in the midst of
writing _Inside Struts 2_, but a new job and some family health issues
have really slowed me down over the last few months.

Hopefully it'll get back on track soon for an early 2010 release.

Dave


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