Results 1 to 2 of 2

Thread: Read a file by Servlet

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Banned
    Join Date
    Jan 2008
    Answers
    25

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact