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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -