Hello world/Web server: Difference between revisions

Content added Content deleted
Line 193: Line 193:
=={{header|J}}==
=={{header|J}}==


If the desire is to use the browser as a gui, the easiest thing to do would be to download [http://www.jsoftware.com/docs/help701/user/relhigh.htm j7], edit the jhs script to start on port 8080, start jhs, visit http://127.0.0.1:8080/jijx then enter the text:
If the desire is to use the browser as a gui, the easiest thing to do would be to [http://www.jsoftware.com/stable.htm download] [http://www.jsoftware.com/docs/help701/user/relhigh.htm j7], edit the jhs script to start on port 8080, start jhs, visit http://127.0.0.1:8080/jijx then enter the text:


<lang j>'Goodbye, World!'</lang>
<lang j>'Goodbye, World!'</lang>
Line 201: Line 201:
However, if the desire is to implement the task exactly, any of approaches at [[j:JWebServer]] might be used.
However, if the desire is to implement the task exactly, any of approaches at [[j:JWebServer]] might be used.


For example, here is a web server which ignores the client's response and always returns Goodbye, Worl:
For example, here is a web server which ignores the client's response and always returns Goodbye, World:


<lang j>hello=: verb define
<lang j>hello=: verb define