UN PROBLEMA MUY RARO (es muy importante)
hola vereis tengo un problema muy raro.
Tengo un html muy sencillo es asi:
<body bgcolor="#ffff99">
<center><font color="#996600"><b>INDIQUE EL FICHERO DE ORIGEN</b></font></center>
<center>
<form name="defichero" method="get" action="/SERVAUTO/cargaejerciciosdesdefichero">
<input type="file" name="fichero" size="50"> <BR>
<input type="submit" name="enviar" value="ACEPTAR">
</form>
</center>
</body>
vale ahà selecciono un fichero por ejemplo:c:/documents and settings/doc.txt
Entonces en el servlet cuando hago:
String fichero=request.getParameter("fichero");
la variable fichero vale solo doc.txt
Yo necesito tener toda la ruta poruqe luego necesito acceder al fichero por que me pasa esto???
Un saludo.
Tengo un html muy sencillo es asi:
<body bgcolor="#ffff99">
<center><font color="#996600"><b>INDIQUE EL FICHERO DE ORIGEN</b></font></center>
<center>
<form name="defichero" method="get" action="/SERVAUTO/cargaejerciciosdesdefichero">
<input type="file" name="fichero" size="50"> <BR>
<input type="submit" name="enviar" value="ACEPTAR">
</form>
</center>
</body>
vale ahà selecciono un fichero por ejemplo:c:/documents and settings/doc.txt
Entonces en el servlet cuando hago:
String fichero=request.getParameter("fichero");
la variable fichero vale solo doc.txt
Yo necesito tener toda la ruta poruqe luego necesito acceder al fichero por que me pasa esto???
Un saludo.
