Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 714

Correct syntax for a servlet that doesn't "return anything"?

$
0
0

What is the correct way of terminating a servlet that doesn't return any data to the client?

The purpose of the servlet in question is to recive some data from an Ajax request and fire off a TCP message to a piece of hardware to tell it to change it's state.

Do you have to specify a response at all?

I've opted for getting a reference to the Output stream and closing it, is this correct?

Should I send back a "hey that worked" message?


Viewing all articles
Browse latest Browse all 714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>