How to accept the file name?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kirti_Wanjale
Posted On:   Friday, June 4, 2004 02:56 AM

Hello everyone! My problem is that I want to pass the file name from one JSP page to other through url or thru getParametermethod anyhow. But problem is that i want the complete path name the user browses. I am using object in first page. e.g. page1 : enter filename ; -> it shows the browsing window through which user accepts the file name.e.g. "/usr/local/bin/a.c" page 2: In page 2 I want the complete path of the file. i.e. "/usr/local/bin/a.c" HOW to do that?? Please help me.    More>>

Hello everyone!


My problem is that I want to pass the file name from one JSP page to other through url or thru getParametermethod anyhow. But problem is that i want the complete path name the user browses. I am using object in first page.


e.g. page1 : enter filename ; -> it shows the browsing window through which user accepts the file name.e.g. "/usr/local/bin/a.c"

page 2: In page 2 I want the complete path of the file. i.e. "/usr/local/bin/a.c"



HOW to do that?? Please help me.

   <<Less

Re: How to accept the file name?

Posted By:   Arunkumar_Sreedharan  
Posted On:   Friday, June 4, 2004 09:19 AM

Hi kirti,


please look at the following code,



1.jsp

------






 

   action="2.jsp" method="post" >

    name="myFile" />

   

  



 








2.jsp

-----




 

   <%= request.getParameter("myfile") %>

  










Anytime,


Arunkumar Sreedhran    arunsreedharan@fastmail.fm
About | Sitemap | Contact