aspose file tools*
The moose likes Struts and the fly likes Struts 2 - Spring Integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Spring Integration " Watch "Struts 2 - Spring Integration " New topic
Author

Struts 2 - Spring Integration

Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jul 30, 2008
Posts: 162

Hi David,

Thanks for reply.

Does the sample chapters available from this book ?


Thanks,

- Kuldeep
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I have no idea if Packt is making sample chapters available.

Dave
Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1304
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


BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jul 30, 2008
Posts: 162

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

Joined: Sep 29, 2008
Posts: 12617

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 - Spring Integration