I need to get current URL (in javascript window.location.href
) for value of my <spring:param>
(in context of creating back URL). For param's value I have to use expression language. Is that even possible, or What are you suggesting? Thank you for answers!
I need to get current URL (in javascript
window.location.href
)
It's available by the HttpServletRequest#getRequestURL()
.
So, in EL thus just ${pageContext.request.requestURL}
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.