aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Technology stack problem(jquery,struts,spring,hibernate) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Technology stack problem(jquery,struts,spring,hibernate)" Watch "Technology stack problem(jquery,struts,spring,hibernate)" New topic
Author

Technology stack problem(jquery,struts,spring,hibernate)

David Mbura
Ranch Hand

Joined: Apr 06, 2010
Posts: 65
Hi guys
I am trying to build a a social networking website (like facebook pretty much) but i am very new in IT world.I want to keep the front end and the back end as two separate layers and any communication between them should be ajax driven.How do i do that? In other words i f keep those 2 layers separate (front end and back end) how do i establish communication using jquery like how the technology stack should be?I am familliar with html ,javascript,css,jquery,struts 2,spring ,hibernate.How do i integrate those technologies to acomplish the task (think of a site like facebook)?Or any different/better opinion from mine will be appreciated.Thank you in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Sounds like you want your back-end to expose something like a RESTful web API that the client-side code can hit with jQuery-driven Ajax.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Mbura
Ranch Hand

Joined: Apr 06, 2010
Posts: 65
exactly... but i dont know how to do that...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

One step at a time. First, I'd learn how to define and set up a RESTful web service and get that accomplished. Then you can learn how to use Ajax to send requests to that API.
David Mbura
Ranch Hand

Joined: Apr 06, 2010
Posts: 65
But i am planning to start coding the front end first,Is it a good idea to integrate with dummy data?what kind of servers to use?For starting out do i really need to connect with the database?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

I'd build the backend first. Otherwise, your front end has nothing to connect to.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Technology stack problem(jquery,struts,spring,hibernate)