• 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

Struts2.0+Ejb3.0 Vs Spring+Hibernate

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

We are using struts 1.x for our application.
Our application makes heavy use of

oracle db

and uses XSLT for view generation.
We need to migrate the application to a newer framework and incorporate ajax.
So, Which would be more advantageous?
Struts2.0+Ejb3.0 or Spring+Hibernate.

Also, Can I use the

Ajax functionality

provided by

Struts2.0

if I am not using JSP, insted use XSLT for view generation.

Any inputs would be really helpful.
Thanks in advance.
 
pavan walvekar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for the "Quote Errors".... Kindly ignore
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you've said one of your reasons for migrating is to incorporate ajax, it would make sense to use Struts 2, since it has features that incorporate ajax.

It's important to understand, though, that you're not limited to the options you mentioned in your post. For example, with EJB 3 you still need a persistence provider and there's no reason Hibernate couldn't be that provider. There's also no reason you couldn't incorporate Spring into a Struts 2 application if it has features you want.
 
pavan walvekar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was helpful.
But can I use the Struts2.0 ajax tags if I use Xml/Xslt for creating views insted of using JSP's?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since most of the ajax functionality in Struts 2 is accessed through the tag library, that isn't going to help you much in an xslt page. My experience has been, though, that not every page needs ajax. You might want to consider analyzing which pages will and will not need ajax functions. If there are only a few that need it, it might be worth it to migrate those few pages to JSPs with Struts tags. Otherwise, your choices are:
  • writing your own JavaScript code to perform the ajax functions
  • using an existing JavaScript toolkit such as Dojo
  • using a more Java-centric toolkit such as DWR.

  • [ June 29, 2007: Message edited by: Merrill Higginson ]
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic