简体   繁体   中英

Synonym for window.location.href in EL - Get current URL

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} .

It's available by the

Read This .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM