tags:

views:

2287

answers:

3

Which front-end tool/framework is suitable/practical if you have a JSP, Java back-end?

Jquery or GWT?

just got confusion. some of my jquery ajax calls won't output a response in the front end.

thanks

+1  A: 

For me, GWT is more suited to "applications", meaning they're one-page. Like GMail really. It doesn't work so well with page transitions (imho).

I wrote some thoughts on Why isn’t Google Web Toolkit more popular?

I'm a huge fan of jQuery. I really like the rapid turnaround you can get with jQuery (vs slow GWT compiles).

It's hard to give you any particular recommendation though without knowing specifics about your requirements and what you're developing.

cletus
we're just having a thesis project in school, what is required is it is online, and has a Java back-end. its up to us to use what front-end.:)thanks.
bgreen1989
Doesn't really say anything about what the project is though. Need more information.
cletus
+1  A: 

GWT can help you to build front end website, it also can build back end serivce. e.g. You built a web widget with GWT which makes AJAX calls to the GWT service. GWT's output is javascript, HTML and CSS for front end, of course you can utilize some JQuery features within GWT and it can be implemented as native method within Java. For AJAX, GWT has already got a set of features to allow you to make efficient calls to the back end. This provides best performance if you build the back end with GWT service. On the other hand, you can also use GWT to call the services built by JSP without any problem.

For JSP, I'd stick with JQuery since these two are really independent, it is like JQuery to PHP. In contrast, GWT has more integration done on both ends and it encapsulates something that you might want to learn by yourself.

codemeit
bgreen1989
+1  A: 

It really depends on how complex the front end is - and how nicely the backend data can be transferred to the front end.

to me, if you have a jsp based app, it would seem like there are plenty of page transitions, and thus gwt isnt quite as good a fit as jquery.

having said that, may be it is possible to not use page transitions, but make the app a single monolithic page with gwt. that way, you might make the user experience better. it really depends on the app tho. if you provided more information about the nature of the app, a better answer can be given.

Chii
what we'll be doing is a online shopping cart with Admin CMS of course, admin can manage shop items, and website style. this is a school project.and it is a requirement to use Java as back-end. so, i am confused which front-end/ajax tool to use.
bgreen1989