struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ady Das-O'Toole" <Ady.Dasoto...@viant.com>
Subject RE: Serving XML and dynamically generated Flash (jgenerator) content with struts
Date Mon, 30 Sep 2002 14:25:30 GMT
You can also set the content type in your response object like so:

response.setContentType("text\html");
response.setContentType("text\pdf");
etc...

-----Original Message-----
From: Joe Latty [mailto:joe@team2media.com]
Sent: Monday, September 30, 2002 10:34 AM
To: Struts Users Mailing List
Subject: RE: Serving XML and dynamically generated Flash (jgenerator)
content with struts



in your action class:

PrintWriter out = new PrintWriter (response.getOutputStream());
out.println(yourXmlString);

return null;

Joe


-----Original Message-----
From: Stefan.Landro@swisscom.com [mailto:Stefan.Landro@swisscom.com]
Sent: Tuesday, 1 October 2002 12:03 AM
To: struts-user@jakarta.apache.org
Subject: RE: Serving XML and dynamically generated Flash (jgenerator)
content with struts


Thanks for the tip!

However, I do not want to transform the xml ... I want a flash-movie to
interpret it and transform it into flash-objects (I really just want to
return content of type text/xml to the user. Is there something like a
xslt no-op?

Now, let's say stxx solves my problem related to XML. How do I return
other mime-types like pdf for instance?

Cheers,

Stef.


-----Original Message-----
From: Jeff Pennal [mailto:jeffp@openroad.ca]
Sent: Montag, 30. September 2002 14:09
To: Struts Users Mailing List
Subject: Re: Serving XML and dynamically generated Flash (jgenerator)
content with struts

Hi Stefan,

You may want to check out stxx. From your email it seems like it should
do everything you need it to do.

stxx - http://www.openroad.ca/opencode/stxx

Stefan.Landro@swisscom.com wrote:
> Hi, there!
>
> I'm kinda new to struts and have a few questions regarding it:
>
> 1. is it possible to serve xml using struts? We're currently using
> 'stand-alone servlets to generate xml that'sread by flash movies, but
> we're seeing a need for things like internationalisation and
application
> flow.
>
> Is there a way of avoiding the jsp's in the view layer and use
servlets
> (which are way better suited for xml than jsp's)
>
> I've checked the archives, but it's real hard to find any good
answers...
>
> 2. We're also using jgenerator to generate dynamic flash - only those
of
> you knowing jgenerator should answer to this question - Where in the
> mvc-model / struts architecture would it make sense to generate flash
> content?
>
> Any advice would be appreciated,
>
> Cheers,
>
> Stef.
>
>
>
------------------------------------------------------------------------
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message