A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Download a file .. in Struts
Joined: Mar 05, 2006
Mar 06, 2006 02:29:00
am having the link/download button to download "abc.bat" from C:/abc.bat ... but it was working in normal HTML ...
IN Normal HTML..
i have attached the code Down .. put one .bat (see the href location where the file is and file name / change accourding to u'r file...) and see how it's working...
first try this one (it will take only 5 min) and then if u have any Query .. shoot me ..
But While comming to Struts.. am not able to download the file... with same code.. i dono Y what is the reason ..
this file is HTML..
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name="create_project_form" method="post" action="/Test">
<cener><a href="C:\Download\abc.bat" >Download </a> </center>
Author and ninkuma
Joined: Jan 10, 2002
Mar 06, 2006 09:27:00
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the
JavaRanch Naming Policy
adjust your display name
to match it.
In particular, your display name must be a first
a last name separated by a space character, and must not be obviously fictitious.
Asking smart questions
Books by Bear
subject: Download a file .. in Struts
The requested method POST is not allowed for the URL
XML Info Database Help
Struts action not returning page on first click of button
Servlet FrontController is not available Head First Servlets & JSP Struts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014