views:

311

answers:

4

Which JavaScript library you recommend to use with J2EE + Struts + iBatis ? Something like Ext JS, Dojo, frameworks that can be easily integrated with Struts.

+2  A: 

There exists a framework that is supposed to tie in nicely with Java Server/Middleware called JSON-RPC

However I have never used it and cannot vouch for it.. Aside from that my favourite framework is cough jQuery

edit after reading more closely, the JSON-RPC is not quite what you are looking for.. but it still might be useful for ya to look into ;)

adam
+1  A: 

Here's a good article on Dojo for Java Developers.

Chris MacDonald
+2  A: 

You must choose the Javascript library based on what you expect from the library, not based on the server libraries. The tipical JS libraries (Ext JS, JQuery, Prototype, Dojo, YUI, etc) work on the browser and don't have any dependence on server tecnology.

If you are looking for a way to use your server POJO's from javascript take a look at DWR. This library is now part of the dojo foundation, but I've used it with jQuery and Prototype with ease.

Serhii
A: 

would suggest you go for Struts 2. It has built in dojo and also has options to plugin other libraries like prototype, jquery, gwt, yui, etc.

Should be really handy, since you're using Struts as your web layer..

Satya