I need to return some custom error message to the front-end. I wonder how can I display it into multiple lines.
e.g. in my code i have tried "line 1," + "/n" + "line2,"...also tried System.getProperty("line.separator");
However it still display as "line1,line2" in front-end.
Please help...
Multi-line display on JFileUploadRe: Multi-line display on JFileUploadSeparator is \n not /n
Re: Multi-line display on JFileUploadsorry for my typo. Actually i have tried no matter either "/n" or "\n", it doesn't work anyway.
maybe I provide more info here...when the file is upload, i will call a servlet to do some checking on the file content and return errors if detected. response.setHeader("custommessage", <multi-line error string>)); So I wonder how can I achieve this? Re: Multi-line display on JFileUploadCould try with \r\n?
I'm not sure it will work because HTTP header are also ending with \r\n For instance: "X-Powered-By: PHP/5.2.17[\r][\n]" Re: Multi-line display on JFileUploadtried but no luck....
|