-
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
-
Banned
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules