Am I missing something with this code (and yea, I know the model is missing), 
but besides that, shouldnt I get the 'action' to get rendered.

! ===============================================
! My Community Link List Aggregator Application
! Date: Mar 3, 2007
! ===============================================
IN: mycommunity
USING: concurrency kernel namespaces sequences threads httpd furnace 
hashtables math ;

TUPLE: topic message author ;
TUPLE: forum topics ;

: links-list ( -- )
    [        
        f "links-list" "linklist" render-page
    ] with-scope ;

: register-actions ( -- )
        \ links-list { } define-action
        "mycommunity" "links-list" "apps/mycommunity" web-app ;

: mycommunity ( -- )
    register-actions
    "mycommunity" set-default-responder 
    8888 [ httpd ] in-thread drop ;  
 
Here is the error:

Calling responder /responder/mycommunity/
Error: 404 no such action:

----------

On another note, on Win32 with Factor 0.88.  I tried several combinations to 
get the httpd serve to run without the UI, no dice.

When I connect to the responder, it just hangs.
Here is the code for that:

REQUIRES: libs/httpd libs/furnace ;
USING: httpd threads file-responder kernel namespaces ;
[  
        "/tmp/htdocs" "doc-root" set
        "webtest" "responder" set
        [ file-responder ] "get" set
        [ file-responder ] "post" set
        [ file-responder ] "head" set
] make-responder

[ 8888 httpd ] in-thread



--
Berlin Brown


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to