Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

jquery and rest services

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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.


 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. Of the mentioned frameworks, I personally (subjectively) find AngularJS promising, and well-documented.
 
I'm so happy! And I wish to make this tiny ad happy too:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic