I forgot to mention, $link will also automagically URL encode your URL for you.
Scott -----Original Message----- From: Weaver, Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 9:54 AM To: 'Turbine Users List' Subject: RE: URL question this should work: servlet/turbine/action/bank.checking.EnterRecord/template/bank,checking,Acco untView.vm Better still, use the $link tool to do it for you: $link.setAction("bank.checking.EnterRecord").setPage("bank,checking,AccountV iew.vm") IMOHO, this is the approach you should take, opposed to coding the links by hand. Scott -----Original Message----- From: Jack Axaopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 9:16 PM To: Turbine Users List Subject: Re: URL question So the correct URL is ../servlet/turbine/template/bank,checking,AccountView.vm Ok that works....Cool... this is all coming together now. Now what if I want an action to execute before AccountView.vm? What would the URL look like? The following works, but is there a better way? ..servlet/turbine/template/bank,checking,AccountView.vm?action=bank.checking .EnterRecord Thanks... J At 05:31 PM 1/10/2002 -0800, John McNally wrote: >Jack Axaopoulos wrote: > > > > I'm using Turbine 2.1 with velocity and have a question > > concerning valid URLs. > > > > After reviewing some of the turbine/velocity code, and doing some tests, > > the following URL works: > > > > ../servlet/turbine?template=/bank/checking,AccountView.vm > > > > My directory structure looks like: > > /templates > > /templates/bank > > /templates/bank/checking > > /templates/bank/checking/AccountView.vm > > > > However, the velocity-site-howto.html seems to imply that the following > > URL should also work: > > > > ../servlet/turbine/template/bank/checking/AccountView.vm > > > > Is this actually the case?? This does NOT work for me, and if it should > > then I know I need to keep digging. > >What statement in the howto is giving you the impression that this >should work? > >It should be template/bank,checking,AccountView.vm > >john mcnally > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
