Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP input type="file" value="<%=filename...%>

843838Oct 6 2005 — edited Oct 7 2005
Hello everybody!

I need some help urgently...
I am doing an application on JSP and i to do uploads of files to database...
So, when i submit of the form the page gives errors, then it redirect me to a error page where to resolve the rest of the form. So i want to put the path of the file that the user setup in the other page to this one, but for security reasons that's no possible, so how can i do this?

Any ideia?

i try doing a
<input type="text" name="file1_path" value="<%=problema.getFiles("file1")%>" size="100" class="botao1">
<input type="file" name="uploadfile1" style="display: run-in;">
<input type="button"  class="botao2" onClick="uploadfile1.click();file1_path.value=uploadfile1.value;" value="Procurar...">
But when i submit i can't have the content of the file inserted....
The form is defined as:
<form action="upload.jsp" method="post" name="form_reg_admin" class="formulario" enctype="multipart/form-data">
Please i need help...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2005
Added on Oct 6 2005
5 comments
724 views