• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 - Spring Integration

 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Welcome to java ranch.

Does the book 'Apache Struts 2 Web Application Development' covers
Struts 2 integration with Spring? Will you please point TOC of book ?

And is this book is useful for beginners or ti required prior knowledge
of struts ?

Thanking You,
[ November 12, 2008: Message edited by: Kuldeep Yadav ]
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the book 'Apache Struts 2 Web Application Development' covers
Struts 2 integration with Spring?

It covers Spring integration in the context of testing and testability, but doesn't go in to great detail about Spring itself.
Will you please point TOC of book?

The TOC is temporarily off the Packt site because of some chapter re-ordering.
And is this book is useful for beginners or ti required prior knowledge
of struts?

The book assumes no previous knowledge of Struts 1 or 2, but does assume Java familiarity and general web application knowledge.

Dave
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Thanks for reply.

Does the sample chapters available from this book ?


Thanks,

- Kuldeep
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea if Packt is making sample chapters available.

Dave
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does the new version of Spring support direct integration with Struts2 like with Struts 1.3?
e.g. treating Struts actions as beans and injecting Spring interface implement into those actions

or do we need to write an additional business delegate for calling Spring interfaces
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does the new version of Spring support direct integration with Struts2 like with Struts 1.3?
e.g. treating Struts actions as beans and injecting Spring interface implement into those actions

or do we need to write an additional business delegate for calling Spring interfaces

The Spring integration is quite tight. We can, in fact, just define a Spring bean and provide a public setter in an action and it will be injected automatically (defaults to autowiring by name) on action instantiation if the Spring plugin is being used.

I'm not familiar with Struts 1.3 (I stopped using Struts 1 at 1.2.9) so I don't know how it compares, but if you have a specific example or question I can try to answer it.

Dave
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Do you think integration of Spring with struts make web appliaction
more powerful ? What do you suggest ?


Thanks
- Kuldeep
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you think integration of Spring with struts make web appliaction
more powerful ? What do you suggest ?

I think Spring is a great tool for accomplishing a great many tasks, not just for web applications. Spring is a bit "heavy" if you're not using a lot of its functionality, for example if all you need is dependency injection there are other, lighter-weight solutions.

Dave
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic