Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Allegro Webactions question

13 views
Skip to first unread message

Jeff M.

unread,
Oct 30, 2010, 1:21:13 PM10/30/10
to
Sorry for posting this here and not on the Allegro mailing list, but
I'm still waiting to gain access to it... I imagine this is a really
simple problem.

While I teach myself AllegroServe and Webactions, I'm starting with a
simple reddit-like website. So, I have something like so for my map:

(("main" "main.clp")
("post" action-post))

(defun action-post (req ent)
... ; do posting code here...
"main") ; return to the main page to show the new post...

This all works just fine, except one little problem. The URL in the
address bar doesn't show /main, but /post instead. In addition, should
I hit refresh, since I'm still on the post page, the POST in the HTTP
headers is there, and it gets resubmitted and the same link is
reposted yet again.

I've tried changing my map to:

(("main" "main.clp")
("post" action-post "main.clp"))

(defun action-post (req ent)
...
:continue) ; continue onto "main"...

But this doesn't work either (it has the same result). I've also tried
using (:redirect t) in the map, but I don't quite understand how to
use that, so I'm probably doing it wrong, but it doesn't appear to
help me either.

Any help greatly appreciated.

Thanks!

Jeff M.

kenny

unread,
Oct 31, 2010, 10:46:27 AM10/31/10
to

It has been years since I played with WebActions, so all I can offer
is:

1. Make sure you worked thru the WebAction tutorial.
2. Try what you are trying as a simple extension of the WebAction
tutorial. If it does not work try sending it with a description of the
failed result to "support AT franz DOT com". They just might give you
a pointer, esp. if it is something simple.

cheers, ken

0 new messages