View Full Version : What is the best way to integrate with server side
gaotong_99
16 Jan 2007, 12:45 PM
Hi:
I have Tomcat 552 running in server side, my application is a jsp-servlet based one, if I use the drag and drop grid in my jsp as a customer configuration tool, what is the best way to send client information to server side
Thanks very much
brian.moeskau
16 Jan 2007, 3:22 PM
Are you asking how to gather/send data from the client using yui-ext, or how to receive/process the data on the server, or both? I think many Java folks use DWR (http://getahead.ltd.uk/dwr) -- I'm not one, but there are others here who can help with that.
gaotong_99
16 Jan 2007, 5:18 PM
Are you asking how to gather/send data from the client using yui-ext, or how to receive/process the data on the server, or both? I think many Java folks use DWR (http://getahead.ltd.uk/dwr) -- I'm not one, but there are others here who can help with that.
Yes, I mean both, but care much on who to gether/send data
Thanks very much
Animal
17 Jan 2007, 12:51 AM
I'd use DWR.
You can attach event listeners to your code which just call methods on a server-side object passing the details of what to update. DWR handles exporting the methods to javascript, and marshalling the parameters.
gaotong_99
17 Jan 2007, 1:23 PM
I'd use DWR.
You can attach event listeners to your code which just call methods on a server-side object passing the details of what to update. DWR handles exporting the methods to javascript, and marshalling the parameters.
Thanks very much for the information, how about using html hidden field and form to do the job, I know that means a heavy javascript client, but I got enough with "frameworks", it is almost impossible to debug.
Animal
18 Jan 2007, 12:04 AM
A hidden input field which you build using the results of yoru drag/drop operations, and a submit using UpdateManager.formUpdate will work too.
This is what I do in my DnD menu builder. Drop components to a menu tree, and onclick of a "submit" button, generate an XML string in a hidden field based on the tree's state, and submit that using formUpdate().
gaotong_99
18 Jan 2007, 10:22 AM
A hidden input field which you build using the results of yoru drag/drop operations, and a submit using UpdateManager.formUpdate will work too.
This is what I do in my DnD menu builder. Drop components to a menu tree, and onclick of a "submit" button, generate an XML string in a hidden field based on the tree's state, and submit that using formUpdate().
Cool, at least I know some one had done it successfully!!! I'll give it a try
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.