"Weaver, Scott" wrote:
> 
> <snip>
> 
> 2. Why using "," to separate path elements? This gives
> extremely ugly URL's?
> 
> </snip>
> 
> In TurbineResources.properties change:
> 
> tool.request.link=org.apache.turbine.util.template.TemplateLink
> 
> to
> 
> tool.request.link=org.apache.turbine.util.template.TemplateLinkWithSlash
> 
> this should render your links with "/" instead of ","
> 
> However, if you read the javadocs for
> org.apache.turbine.util.template.TemplateLinkWithSlash you will see it is
> not recommended
> 

This will allow one to use / in the templates, the urls will still
contain , (comma)
Turbine treats pathinfo as name/value pairs.  Therefore you cannot use /
in template paths as it will mess up the name value pairing.

template/store,Department.vm/id/1 => template=store,Department.vm and
id=1
template/store/Department.vm/id/1 => template=store and Department.vm=id
and 1=

comma was chosen as the separator as it 1. works, 2. is/was used by a
major web publishing tool (I think Vignette, but could be mistaken).  My
irc client forces me to c/p links containing commas, but other than that
i have never noticed much problem with using them.

john mcnally

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

Reply via email to