You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by alee amin <ma...@gmail.com> on 2008/05/27 11:54:39 UTC

Downloading a file through struts

Hi,

I need to download some CSV file from struts. how can i? I have already
implemented the "Action" class for specific page but i don't know how to
write on stream in struts so that it may pop up as download dialog
..alee

Re: Downloading a file through struts

Posted by alee amin <ma...@gmail.com>.
thanks but someone recomened me to use "displaytag" tag lib and now i am
stuck in it. I have done all the necessray configuration for the CSV export
but even then i am getting tag.getAsString exception. not able to figure it
out how to solve :(

On Tue, May 27, 2008 at 8:01 PM, dusty <du...@yahoo.com> wrote:

>
>
> http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/FilterDispatcher.html
>
> Read the section on serving static content.  Depends on what you are trying
> to do.  Serve a file your action is controlling/manipulating/creating or
> serve some static content from the classpath.
>
>
>
> DanglingChap wrote:
> >
> > Hi,
> >
> > I need to download some CSV file from struts. how can i? I have already
> > implemented the "Action" class for specific page but i don't know how to
> > write on stream in struts so that it may pop up as download dialog
> > ..alee
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Downloading-a-file-through-struts-tp17486982p17492469.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
..alee
http://techboard.wordpress.com

Re: Downloading a file through struts

Posted by dusty <du...@yahoo.com>.
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/FilterDispatcher.html

Read the section on serving static content.  Depends on what you are trying
to do.  Serve a file your action is controlling/manipulating/creating or
serve some static content from the classpath.



DanglingChap wrote:
> 
> Hi,
> 
> I need to download some CSV file from struts. how can i? I have already
> implemented the "Action" class for specific page but i don't know how to
> write on stream in struts so that it may pop up as download dialog
> ..alee
> 
> 

-- 
View this message in context: http://www.nabble.com/Downloading-a-file-through-struts-tp17486982p17492469.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Downloading a file through struts

Posted by Laurie Harper <la...@holoweb.net>.
alee amin wrote:
> Hi,
> 
> I need to download some CSV file from struts. how can i? I have already
> implemented the "Action" class for specific page but i don't know how to
> write on stream in struts so that it may pop up as download dialog
> ...alee

Does this help?

http://struts.apache.org/2.0.11.1/docs/how-do-we-download-files-within-the-framework.html

L.


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