Hola! Estoy intentando subir archivos al tomcat desde mi proyecto usando el framework struts. Encontres un tutorial de como hacerlo, que me puedo ejecutar correctamente. El problema es, que en ningun momento te dicen como meterle la ruta donde lo quieres guardar y no encuentro ninguna funcion donde especificarlo. Mi codigo es el siguiente:
Tengo el siguiente Action de struts con su correspondiente form bean:

public class UploadAction extends org.apache.struts.action.Action {

/* forward name="success" path="" */
private static final String SUCCESS = "success";

/**
* This is the action called from the Struts framework.
* @param mapping The ActionMapping used to select this instance.
* @param form The optional ActionForm bean for this request.
* @param request The HTTP Request we are processing.
* @param response The HTTP Response we are processing.
* @throws java.lang.Exception
* @return
*/
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {




if (form instanceof UploadForm)
{

UploadForm formulario = (UploadForm) form;

FormFile fichero = formulario.getTheFile();
String contentType = fichero.getContentType();
String nombreFichero = fichero.getFileName();
int tamFichero = fichero.getFileSize();
byte[] datosFichero = fichero.getFileData();
System.out.println("Tipo: " + contentType);
System.out.println("Nombre: " + nombreFichero);
System.out.println("Tamano: " + tamFichero);

try {
//guarda los datos del fichero
ByteArrayOutputStream flujoSalida = new ByteArrayOutputStream();
InputStream flujoEntrada = fichero.getInputStream();
// solo si el archivo es de menos de 4MB
if (tamFichero < (4*1024000))
{
byte[] buffer = new byte[8192];
int bytesLeidos = 0;
while ((bytesLeidos = flujoEntrada.read(buffer, 0, 8192)) != -1)
{
flujoSalida.write(buffer, 0, bytesLeidos );

}

String datos = new String(flujoSalida.toByteArray());
}
else
{
String datos = new String("Fichero de más de 4MB: no pudo almacenarse." +
" Tamano del fichero: " + tamFichero + " bytes.");
}
}
catch(Exception e)
{}

}

return mapping.findForward(SUCCESS);
}
//RETURN NULL;
}
Y mi jsp es:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<html>
<head>
<title>Ejemplo de SUBIDA DE FICHEROS</title>
</head>
<body>
<!--
The most important part is to declare your form's enctype to be
"multipart/form-data", and to have a form:file element that maps
to your ActionForm's FormFile property
-->
<div align=center>
<html:form action="upload.do" enctype="multipart/form-data">
<p>Introduzca el nombre del fichero a subir:&nbsp;&nbsp;<br />
<html:file property="theFile" /></p>
<p><html:submit /></p>
</html:form>
</div>
</body>
</html>

Todo configurado correctamente mediante el struts-config.xml, ya que se ejecuta correctamente, solo que sin especificarle la ruta de destino.
¿Alguien sabe alguna forma de decirle en el action en que carpeta de tomcat quiero que se guarde?? O sabeis alguna otra forma de subir archivos al tomcat usando struts??
Gracias por anticipado. Salu2