• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 - Spring Integration

 
Ranch Hand
Posts: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,

Thanks for reply.

Does the sample chapters available from this book ?


Thanks,

- Kuldeep
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have no idea if Packt is making sample chapters available.

Dave
 
Ranch Hand
Posts: 1327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic