aspose file tools
The moose likes Other Application Frameworks and the fly likes How can we get URL in Spring framework Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "How can we get URL in Spring framework" Watch "How can we get URL in Spring framework" New topic
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How can we get URL in Spring framework
 
Similar Threads
spring files
Has someone used struts spring polls ?
kerberos/spnego authentication for an app which uses spring framework and jboss server
kerberos/spnego authentication for an app which uses spring framework and jboss server
kerberos/spnego authentication for an app which uses spring framework and jboss server