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.
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