Two Laptop Bag*
The moose likes Servlets and the fly likes File parser application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "File parser application" Watch "File parser application" New topic
Author

File parser application

Siddhesh Khedekar
Ranch Hand

Joined: Nov 09, 2009
Posts: 36
How to pass filepath from JSP to Servlet?
Then I want to parse the file in servlet (parsing logic I have) then I want to display the list in another JSP?
Please give me guidelines and code if possible.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

How to pass filepath from JSP to Servlet?

You mean after a JSP page is shown to the user in the browser then?? Also when you said "parse the file", is there anything specific that you want to do while parsing the file or just read it from start to end??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Siddhesh Khedekar
Ranch Hand

Joined: Nov 09, 2009
Posts: 36
Parsing logic I have.My problem is how to pass a file path to servlet and then parse the file using the file path.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Where is the file? Client side or server side? You can't address files on the client's computer from the servlet for obvious security reasons.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File parser application
 
Similar Threads
How to config jsp in web.xml?
Servlet reading a JSP file
How map the first servlet to second servlet
File upload from Jsp
Login Page creation help