0
我把瀏覽器放在我的jsp頁面,當我通過瀏覽器 選擇文件時,我在做一個System.outn選擇文件路徑,我只有名字, 和我需要的所有文件路徑選擇如何恢復所有選定的文件路徑
<form:form onsubmit="document.getElementById('idButton').value='Traîtement en cours ...'" action="ajouter.html"
method="POST">
<input type="file" name="cible">
<input type="submit" id="idButton" name="ajouter" value="Ajouter" tabindex="50"/>
</form:form>
(ActionForm)
String leChemin = (String) request.getParameter("cible");
System.out.println("leChemin = " + leChemin);
http://stackoverflow.com/questions/81180/how-to-get-the-file-path-from-html-input-form-in-firefox-3 – Bozho 2010-10-19 10:18:32