Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

jquery and rest services

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we create rich ui pages just with jquery and rest services? I am planning on building a simple site with basic curd operations to manage few tables, and wondering if just jquery and rest services can do everything ?
all I care is some forms to create data with validation check , then grid to display data ?

Please advice and are there any framaeworks which integrate java, jsp, jquery ? I dont want to use all complex gwt, jsf or anyother framework, just a java script framework , html and java backend.


 
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sam bartl wrote:Can we create rich ui pages just with jquery and rest services?


Absolutely. In fact that's a strong trend in the industry.

Please advice and are there any framaeworks which integrate java, jsp, jquery ?


OK, now I'm confused. If what you asked above is what you want to do, then where does Java and JSP come into the picture?

Whether the REST service is written in Java or not is completely irrelevant. And if you are creating purely client-side pages, there's no JSP or Java needed for the views.

What you might want to consider are client-side JavaScript MVC frameworks -- most of which use or support jQuery -- such as Backbone, Ember or Angular.
 
sam bartl
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

sam bartl wrote:Can we create rich ui pages just with jquery and rest services?


Absolutely. In fact that's a strong trend in the industry.

Please advice and are there any framaeworks which integrate java, jsp, jquery ?


OK, now I'm confused. If what you asked above is what you want to do, then where does Java and JSP come into the picture?

Whether the REST service is written in Java or not is completely irrelevant. And if you are creating purely client-side pages, there's no JSP or Java needed for the views.

What you might want to consider are client-side JavaScript MVC frameworks -- most of which use or support jQuery -- such as Backbone, Ember or Angular.



What I meant is If I use plain html and have couple of html files then I have to rewrite the css , js files , header in every html page I cannot have includes like jsp includes in html , please advice when writing plain html how can I include them ,does any of the javascript mvc framework provides that?
 
Bear Bibeault
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sam bartl wrote:What I meant is If I use plain html and have couple of html files then I have to rewrite the css , js files , header in every html page


Nope. That's not the way client-side web apps are written. Usually such apps are what are known as SPAs (single-page applications) where the main page with all its boilerplate is loaded once, and the primary content is replaced as needed.

Linking and bookmarking are usually provided by "deep linking" which is hard to roll on your own; hence the suggestion to investigate the client-side frameworks if you want to head in this direction.

 
Bear Bibeault
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
P.S. Of the mentioned frameworks, I personally (subjectively) find AngularJS promising, and well-documented.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic