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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -