if u r using orilley component for upload
then u can get filename
using this code
MultipartRequest mp = new MultipartRequest(request, "directory path where u
want to store file");
filename = mp.getFilesystemName("fname");
bye,
----- Original Message -----
From: sufi malak <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 1:57 AM
Subject: question
> I have a question please,
>
> insertform.jsp :
> <%session.setAttribute("lastname", lastname);%>
> <%response.sendRedirect("wasAdded.jsp");%>
>
> wasAdded.jsp :
> <form method="post" enctype="multipart/form-data"
>
action="http://mil2wwds13:8080/abovebeyond/servlet/UploadServlet?C:\tomcat32
3\webapps\abovebeyond\upconf.txt">
> <td> <input type=file size=20 name="fname"></td>
> <td> <input type=Submit value=Upload> </td> </form>
> </tr></table>
>
> in the text file upconf I have this line :
> # show this page after uploading
> reply=http://mil2wwds13:8080/abovebeyond/inserted.jsp
>
> Now in inserted.jsp I want to get the fname from wasAdded.jsp
> How can I do it ?
> Thanks
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com