• Post Reply Bookmark Topic Watch Topic
  • New Topic

Know incoming url from request object

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Does anyone know of a way to find out the string of the requested url from the request object?

I have a filter and in my doFilter method I need to know which resource in the application was requested.

Thanks in advance for any help.
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, there's the getRequestURL() method. There are also other methods which get parts of the request URL and you might find them more suitable. Just look in the API documentation for HttpServletRequest to find them.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!