On 14.07.11 05:00, xgc kxlzx wrote:
> I wan't template file name like "user.money.vm".
> but TurbineTemplateService getExtension function use "indexof()" get the
> file extension.
> It should be "lastindexof()"....
> can you do it?
> 
> 
> org.apache.turbine.services.template.TurbineTemplateService{
>     public String getExtension(String template)
>     {
>         if (StringUtils.isEmpty(template))
>         {
>             return getDefaultExtension();
>         }
> 
>         //at here ,change to int dotIndex =
> template.lastindexOf(EXTENSION_SEPARATOR);
>         int dotIndex = template.indexOf(EXTENSION_SEPARATOR);
> 
>         return (dotIndex < 0) ? getDefaultExtension() :
> template.substring(dotIndex + 1);
>     }
> }
> 
Would you please open a JIRA ticket so the issue does not get lost.

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to