If you want the Save/Open/Cancel dialog, use Flex 2's 
flash.net.navigateToURL() method instead of HTTPService.

If this is Flex 1.5, use Application.getURL().


--- In flexcoders@yahoogroups.com, "Silpa sirivella" <[EMAIL PROTECTED]> 
wrote:
>
> Atleast tell me whether it is possible With flex?
> 
> thanks
> -silpa
> --- In flexcoders@yahoogroups.com, "Silpa sirivella" <silpa_sus@> 
> wrote:
> >
> > Hi all,
> >  
> > I have a requirement to open Steam coming from J2EE layer. More 
> > clearly, I've MXML file where i'm requesting a servlet using 
> > HTTPService. Here is the code
> > 
> > <mx:HTTPService id="exportRequest" useProxy="false" 
> > url="/inventory/search.do" showBusyCursor="true">
> >         <mx:request>
> >             <Action>Export</Action>
> >             <exportMode>pdf</exportMode>
> >         </mx:request>
> > </mx:HTTPService>
> > 
> > And here is my struts application
> > 
> > ByteArrayOutputStream baos =new ByteArrayOutputStream();
> > 
> > if(exportMode.trim().equalsIgnoreCase("pdf")) {
> > response.setContentType ("application/pdf");
> > response.setHeader ("Content-Disposition", "attachment; 
> > filename=\"SearchResults.pdf\"");
> > try{
> > JasperExportManager.exportReportToPdfStream(jasperPrint, baos);
> > }catch(JRException jre) {}
> >                                     
> >     response.setContentLength(baos.size());
> >     ServletOutputStream outStream = response.getOutputStream();
> >     baos.writeTo(outStream);
> >     baos.close();
> >     outStream.flush();
> > it works fine when i made a call from HTML. I've to get a popup 
> > contains "Save" "Open" and "Cancel" options.
> > I appreciate any help on this.
> > 
> > -silpa
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to