Problem in getting the response in Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vpadamati
    New Member
    • Aug 2007
    • 1

    #1

    Problem in getting the response in Java

    Hi All,

    I come across some problem in java, when getting the response from the server instead of displaying the in browser its downloading entire resonse as file dowload attachment and it opens in a new browser.

    nothing is there in sever side code. code as follows

    response.setCon tentType("text/plain");
    // some coding......
    // at the end

    out.println("bl a bla bla......");

    like this....

    any one please help me ......

    Regards
    Padamati
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Are you sure you want that content type, i.e. plain text?

    kind regards,

    Jos

    Comment

    Working...