This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 File Download Process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 File Download Process" Watch "Struts2 File Download Process" New topic
Author

Struts2 File Download Process

pl husal
Greenhorn

Joined: Mar 11, 2008
Posts: 2
Hi,

Is there any body have code which allow user to download files from server using Struts2.

I am trying to code for that requirement, but not able to complete using Struts2,

Appreciate if once share there ideas

regards
husal
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://struts.apache.org/2.x/docs/stream-result.html

There's an example in the showcase app, too.

Are you having a specific issue?
pl husal
Greenhorn

Joined: Mar 11, 2008
Posts: 2
when i code i am getting the file content in response not as the file.

thanks for the url, let me try that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 File Download Process
 
Similar Threads
Struts2 java.lang.reflect.InvocationTargetException (Struts2 with Hibernate)
struts2 question!
Intergration of Struts2 and EJB3.0 using struts2-ejb3-plugin
STRUTS2
Struts2 & XWork