PDA

View Full Version : Spring security with AJAX.



shashi
Jul 3rd, 2009, 05:41 AM
Hi,

We are using extjs for our UI.

I am using spring security for authenticating the user.

However I would like to pass the JSON data back to the browser after the authentication is successful. However I am not able to do so since spring filter doesn't allow me to write the json content in the output stream on few of the web servers.

I used tomcat and it works fine, however on weblogic it doesn't work since the json string I write to the output stream is overwritten by spring authentication.

Is there a solution for this?

Appreciate any help regarding this.

Thanks in advance,
Shashi

ole.ersoy
Jul 3rd, 2009, 04:49 PM
Hi Sashi,

We are working on a solution using DWR here:
http://forum.springsource.org/showthread.php?p=248705#post248705

The authentication part is already worked out.

Now we just want to know how to cleanly implement a isCallable(Object, methodName) service.

Cheers,
- Ole

shashi
Jul 6th, 2009, 03:55 AM
Hi Ole,

Thanks very much for your reply.

I look forward to using your solution. I will post my experience soon.

Thanks,
Shashi