Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Computer Networks (CITS3002).
Before posting a question here, you may like to read the article How To Ask Questions The Smart Way.
RSS cloud
Jump to:

java servelt

2 of 770 articles shown, currently no other people reading this forum.
From: Junyou P.
Date: Tue 12th May 2020, 2:41pm


I would like to ask, if I use Java, can I use HttpServlet?

java servelt

From: Christopher M.
Date: Wed 13th May 2020, 6:47am


"Junyou Peng" <22*4*9*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> I would like to ask, if I use Java, can I use HttpServlet?

That's seems like a lot of overhead to meet the 'requirements' demonstrated in the Getting 
Started page:

   - read a number of lines from an open connection, until blank line is reached.
   - from the line beginning with 'GET', extract the required destination
   (determine the result)
   - write a few lines of HTML on the same connection.

What features from the HttpServlet class are you requiring that is not served by 10-15 
lines of basic Java?
This Page

Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020