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

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -