java - Any JSTL or Spring methods that handles URL like this? -
so have jstl tags following
<a href="${urlheader}hfv/${currow.posttitle}"> </a> if currow.posttitle "test test" , when click link, posttitle segment of url becomes "test%20test". want "test_test" instead.
does have done before data has been passed view or can available jstl or spring tags?
thanks.
there jstl tag in "functions" called replace can use this. works string.replace. example shows, can this:
${fn:replace(url, " ", "_")}
Comments
Post a Comment