on 1/2/2001 7:51 AM, "Shaun Campbell" <[EMAIL PROTECTED]> wrote:
> Thanks Will
>
> I have placed my input statement inside a form statement and am now getting
> doAdd to work.
>
> eg
>
> <form method=post
> action="http://localhost:8080/cdtrack/servlet/cdtrack/action/NewUser" >
>
> <input type="submit" name="eventSubmit_doAdd" value="Add User">
> <input type="submit" name="eventSubmit_doUpdate" value="Update User">
>
> </form>
>
> Is this correct?
It should be:
<form method="post"
action="$link.setPage("NewUser.vm").setAction("NewUser")">
No need to hard code the URI into there. You should also set the page to be
the current page so that you can easily display errors. Then in your action,
you can set the next page to display with a setTemplate(data,
"NextPage.vm"); or even better, define that in your template and pull it out
in the Action.
> If you can only use action events in this manner why do
> you ever call up a URL directly, as in
> http://localhost:8080/cdtrack/servlet/cdtrack/action/NewUser, if it only
> ever performs doPerform? This seems to be used in Jyve and I am a bit
> puzzled?
Jyve isn't the best example of things by a LONG shot. On top of the fact
that Jyve was implemented before I came up with the idea of ActionEvents.
:-)
thanks,
-jon (who wrote Jyve with only 4 brain cells working) stevens
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]