Re: Struts service facade

2007-01-24 Thread einundswanzig
Well in that article in the http://www.adobe.com/devnet/flex/articles/struts_05.html page number 5 the author says that we could create some kind of service facade to solve the problem, my question is how can i do that in Struts? Eric Rank-2 wrote: > > Hi, > > First, this is probably not a

Re: Struts service facade

2007-01-24 Thread Martin Cooper
On 1/24/07, Eric Rank <[EMAIL PROTECTED]> wrote: Hi, First, this is probably not a question for the dev list, but rather for the user list (http://struts.apache.org/mail.html#subscribing) I haven't done much with Flex, but I'm familiar enough with the technology to hopefully shed some light on

Re: Struts service facade

2007-01-24 Thread Eric Rank
Hi, First, this is probably not a question for the dev list, but rather for the user list (http://struts.apache.org/mail.html#subscribing) I haven't done much with Flex, but I'm familiar enough with the technology to hopefully shed some light on your situation. Struts is designed to serve

Re: Struts service facade

2007-01-24 Thread Martin Cooper
First, this is really a question for the User list. This list is for discussion of the development of Struts itself. Please follow up on that list rather than here. Second, you haven't actually said whether you're trying to use Struts 1 or Struts 2. Joe has provided the answer for S1; Musachy has

Re: Struts service facade

2007-01-24 Thread einundswanzig
einundswanzig wrote: > > Im new in Struts, in fact im pretty new in Java, but i have programmed for > Coldfusion, C#/VB and Flex. Im trying to connect to a J2EE server with > Struts on it using Flex. Flex is able to call a java component on the > server and execute a method and then serialize t

Re: Struts service facade

2007-01-24 Thread Martin Cooper
On 1/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Well, you can use the plugin to "send the data back", using a "json" result, instead of writing to the OutputStream directly, like Joe mentioned. Oh, *that* plugin. Sorry. I thought you were talking about the contents of the link you had

Re: Struts service facade

2007-01-24 Thread Musachy Barroso
Well, you can use the plugin to "send the data back", using a "json" result, instead of writing to the OutputStream directly, like Joe mentioned. The plugin has a helper class to write to an stream, or build an string from an object also. I recently added an interceptor, to populate an action f

Re: Struts service facade

2007-01-23 Thread Martin Cooper
On 1/23/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: I have never used Flex, but it seems like it plays nicely with JSON: It does, and you don't need a plugin. If you just want to get data back from the server, you can send JSON and use ActionScript's 'eval' function to turn that into a dat

Re: Struts service facade

2007-01-23 Thread Musachy Barroso
I have never used Flex, but it seems like it plays nicely with JSON: http://weblogs.macromedia.com/mesh/archives/2006/03/one_of_the_litt.html You can use the JSON plugin to serialize your actions into JSON. If you post this question on the user list, you'll probably get more answers regards m

Re: Struts service facade

2007-01-23 Thread Joe Germuska
What do you mean by "just the result?" If your Flex app is calling Struts, then it needs some kind of data back. Are you saying that you want the result to be ActionScript, kind of like a JSON result? Or XML? In the general case, if a Struts action writes data to the Servlet response, then it