Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/09/2006, 00:23
Raiko
 
Fecha de Ingreso: noviembre-2005
Mensajes: 97
Antigüedad: 19 años, 4 meses
Puntos: 0
Tienes que referenciar al HtmlLink a un action.

<html:link action="ACTION_DE_DESCARGA" paramId="fichero" paramName="file" paramProperty="filepath">....</html:link>


De esta forma, el link quedará como:

http://www...../ACTION_DE_DESCARGA.do?fichero="filepath"

donde filepath es la ruta al fichero.

En ese action podrás hacer

request.getParameter("fichero").toString()

y obtener la ruta la fichero. Luego lo lees con inputStream, y lo escribes en el response. De todas formas, te aconsejaría que tuvieras Id's y cosas por el estilo en vez de enviar el path.

Saludos!