This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File parser application

 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic