Hi!

> > The following works, but is there a better way?
> > 
>..servlet/turbine/template/bank,checking,AccountView.vm?action=bank.checking.EnterRecord
>
> I'm new to Turbine (haven't actually used it yet), but after silently
> hanging out on this mailing list, I think you want pass all your
> parameters as key/value pairs separated with a '/' character, so the
> preferred way for the above url would be:
>
> 
>..servlet/turbine/template/bank,checking,AccountView.vm/action/bank.checking.EnterRecord

Both of the above URLs work because Turbine treats extra path information
like servlet request parameters.  In the above example, there are two Turbine
request parameters, "template" and "action":

template = bank,checking,AccountView.vm
action = bank.checking.EnterRecord

... so the following URL should also work:

.servlet/turbine?template=bank,checking,AccountView.vm&action=bank.checking.EnterRecord

The above methods use the GET HTTP method, but if you were accessing Turbine
from a form using the POST HTTP method, you could also use hidden form fields:

<INPUT TYPE=hidden NAME="template" VALUE="bank,checking,AccountView.vm">
<INPUT TYPE=hidden NAME="action" VALUE="bank.checking.EnterRecord">

It is up to you which you prefer.

Regards,

-- Rodney

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to