I suppose that I should have mentioned that you can change the $link
pull tool to use org.apache.turbine.util.template.TemplateLinkWithSlash
to be able to use the slash instead of the comma.  It is slightly less
efficient.  It works by replacing the slash with a comma for you when it
builds the URL.

-----Original Message-----
From: Quinton McCombs 
Sent: Thursday, December 12, 2002 1:37 PM
To: Turbine Users List
Subject: RE: Comma in the URL in the Template path


The information is incorrect.  The reason that the slash is a problem is
in the ParameterParser.  Slahses are used to separate things on the URL.
If you look at the actual URL created by
$link.setPage("services/index.vm") it will look something like
http://www.yourserver.com/context/servlet/servletname/template/services/
index.vm.  When this is parsed, the result of getScreenTemplate() in the
RunData object is "services".  The commas is used to get around this
little issue.

-----Original Message-----
From: Akshay Kapur [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 12, 2002 12:33 PM
To: Turbine Users List
Subject: Comma in the URL in the Template path


index.vm is places under templates/services

The URL to access is http://localhost/servlet/template/services,index.vm

I have two questions -

a. Is there anyway to remove the comma by a slash in the above URL?

b. In my templates, I have to set the links as $link.setPage( 
"services,index.vm" ). When I replace the comma by a slash, it doesn't 
work. As per the HowTo on Velocity Context, it should 
(http://jakarta.apache.org/turbine/turbine-2/howto/velocity-site-howto.h
tml).

Am I missing a point or is the comma the only way to code and access?

Thanks
Akshay

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

Reply via email to