FOX427
2015-06-02 16:28:02 UTC
Hi All,
I have <url> node in xml that has link to web site, used and it was fine as
long as node has link starting with "http://"(for example,
"http://www.yahoo.com"), but some nodes don't have it and because of that i
am getting this link attached to the path in my url in the browser, for
example, localhost:7001/product/www.google.com instead of just going to
www.google.com.
Searched freemarker docs and found ensure_starts_with that should have
helped with this problem: <${url}> </a> <${url}>
Still getting url attached to my controller path.
I am using Spring framework.
I think I can do string manipulations and fix this problem but was wondering
if there is better solution. Thanks.
--
View this message in context: http://freemarker.624813.n4.nabble.com/ensure-starts-with-issue-tp4655468.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
I have <url> node in xml that has link to web site, used and it was fine as
long as node has link starting with "http://"(for example,
"http://www.yahoo.com"), but some nodes don't have it and because of that i
am getting this link attached to the path in my url in the browser, for
example, localhost:7001/product/www.google.com instead of just going to
www.google.com.
Searched freemarker docs and found ensure_starts_with that should have
helped with this problem: <${url}> </a> <${url}>
Still getting url attached to my controller path.
I am using Spring framework.
I think I can do string manipulations and fix this problem but was wondering
if there is better solution. Thanks.
--
View this message in context: http://freemarker.624813.n4.nabble.com/ensure-starts-with-issue-tp4655468.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------