02/07/2001 14:05:33, "Scott Eade" <[EMAIL PROTECTED]> wrote:

>> Don't see this in the archives and I find the TemplateLink docs a little 
>> sparse... Basically I would like to add several arguments to the end of a 
>> dynamic link and have noticed a few strange things...
>> 
>> - Doing a double .addPathInfo("thing", "thingvalue").addPathInfo("thing2", 
>> "thing2value") seems to leave thing2 null. Is this possible in a different 
way 
>> than I'm expressing it?
>
>I have used multiple (well two) .addPathInfos on the same $link with
>no problems.  When I do run into problems it is usually because one 
>of either the name or values is coded incorrectly (perhaps a VTL 
>variable that I have not initialised correctly).

How did you guess? (I could've sworn it was properly set but there you go..)

>> - I tried to create a simple URL: ahref="url?thing=thingvalue&thing2=value2" 
and 
>> found some strange stuff. First of all, I had to stop and restart Tomcat to 
get 
>> it to stop appending the old path info(?!).>Stick to $link.  To add query 
data use .addQueryData() and for actions
>use .setAction().  I have links that combine the use of all three of these at 
once,
>again with no problems.

Good advice - working a treat. Cheers Scott. Still don't know about the 
restarting Tomcat stuff but for this afternoon, I don't care...

colm



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

Reply via email to