Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[java-Upload]How to force writing after an IOEceptio

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
In a servlet, I use the Oreilly package for upload . And when the file size exceeds the limit, an IOEcxeption is thrown.
So, i want to send a message to the client browser to signal this error.
 
add some text to the response object using the response.getWriter();

add the text u wanna write to this PrintWriter.

this should work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top