Geeks Talk

Prepare for your Next Interview




Read a file by Servlet

This is a discussion on Read a file by Servlet within the JSP forums, part of the Web Development category; hai.. I have to read a file by Servlet.. then have to pass it for JSP.. then have to print the contents of file in text area by JSP.. How ...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-18-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 160 Times in 136 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
Read a file by Servlet

hai..

I have to read a file by Servlet..
then have to pass it for JSP..
then have to print the contents of file in text area by JSP..
How to do these?
help me.

Question asked by visitor senthil
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-24-2008
Banned
 
Join Date: Jan 2008
Location: hyderabad
Posts: 28
Thanks: 0
Thanked 4 Times in 4 Posts
sureshch83 is on a distinguished road
Re: Read a file by Servlet

In the servlet you have to write Java io logic like
Getting FileInputStream object and read the file using the methods in that class and store the total chars of file into a string.
Then pass this string arg to jsp file.
In jsp u can get the parameter value and print it using out object.

Regards,
Ch.suresh
Reply With Quote
Reply

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to read files using informatica reetasharma108 Data Warehousing 3 09-03-2007 07:24 AM
How to Unzip the file when there is only Read Permission Geek_Guest Unix/Linux 1 08-03-2007 01:12 PM
How to read a value from resultsetobjet Geek_Guest JSP 2 06-15-2007 07:22 AM
The Read/Write Web Lokesh M HTML & CSS 0 06-20-2006 11:58 PM
Software and Programs license - Must Read admin Downloads 0 05-24-2006 06:09 PM


All times are GMT -4. The time now is 08:26 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved