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
musachy
Joe Germuska wrote:
> 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 should return null. But often, an easier way to do something
> like a
> simple XML or JSON result is to use a JSP with a content type other
than
> text/html. Automatic serialization of a POJO to JSON or XML is
probably
> more elegant, but for a quick solution, you can render that stuff in a
> JSP
> -- in any case, better than writing directly to the output stream,
> which I'd
> generally only want to do with downloads or other binary data.
>
> I don't know if this helps at all...
>
> Joe
>
>
> On 1/23/07, einundswanzig <[EMAIL PROTECTED]> 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 the result and deserialize it
in
>> an
>> Actionscript(scripting language of flex) object. In my imaginary app
>> Flex
>> will provide the View, so im trying to find a way to enable Struts to
>> serve
>> just a result without a JSP or HTML page, i just want the result. Oh
god
>> this is confusing....
>> --
>> View this message in context:
>> http://www.nabble.com/Struts-service-facade-tf3078810.html#a8553935
>> Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]