| Author |
How can we get URL in Spring framework
|
Nagaraju Mulinti
Ranch Hand
Joined: Aug 10, 2008
Posts: 36
|
|
Hi,
I want to know the browser URL and based on the browser URL I need to execute some logic.Is there any way to get URL in Spring framework.
Thanks in advance.
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
|
I don't know what Controller you're using, but every one has one or more methods that take a HttpServletRequest as a parameter - you can get the URL from the HttpServletRequest method getRequestURL().
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
Nagaraju Mulinti
Ranch Hand
Joined: Aug 10, 2008
Posts: 36
|
|
|
Thanks Nathan for your info.
|
 |
 |
|
|
subject: How can we get URL in Spring framework
|
|
|