The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalkish Web Responses

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalkish Web Responses Posted: Jan 25, 2007 6:54 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalkish Web Responses
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Michael isn't sure that servlets are the best way to deal with web requests, so he's exploring pragmas (or tags) as a way of approaching the problem. Here's a snippet of his post; I encourage you to read the whole thing:

So I got thinking about pragmas again - or as Travis wants to call them: "tags". I thought, what if I could just make one class and put all these adhoc response methods in there using tags. So I've come up with a couple of tags you can put in to a subclass of HttpServerTags.TagServer.

 

static_content
       <get: #('test.txt')>
       <string: 'text/plain'>
       ^'Hello World'



In this simple example we say that we respond to a GET request with path of /test.txt and our content type is text/plain. When we request the page, we get back a string of Hello World. Pretty simple and to the point.

The other examples are far more interesting; head on over and check it out

Technorati Tags:

Read: Smalltalkish Web Responses

Topic: EAT Design Improvement Previous Topic   Next Topic Topic: Time for a big move

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use