java - How to send a list of strings in http response? -


i have list of strings in list assetlist. how can send list in http response in java servlet ? new java.

call method after converting list string:

private void writeresponse(httpservletresponse response, string responsestring) {     try {         printwriter out = response.getwriter();         out.println(responsestring);         out.flush();         response.flushbuffer();         out.close();     } catch (exception e) {         e.printstacktrace();     } } 

to convert list of strings string, see: best way convert arraylist string


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -