| Author |
pagination
|
Garrett Smith
Ranch Hand
Joined: Jun 27, 2002
Posts: 401
|
|
How can I know if the requested page matches a resource?
|
comp.lang.javascript FAQ: http://jibbering.com/faq/
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
|
|
pagination? So you are trying to see if the current request is the result of a specific URL mapping in the deployment descriptor?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Garrett Smith
Ranch Hand
Joined: Jun 27, 2002
Posts: 401
|
|
Ideally, yes, that is what I would like. If the container's response is generated from /index.jsp, and the current page is generated from /index.jsp, then that should be true. (can worry about query string later). To me, this seems to be the safest way to deal with servlet-mapping and welcome-file-list. At worst, I'd like to have the default file stripped off and compare paths (assuming the same domain). I think this approach is safe for standard pagination links. usage:
|
 |
Garrett Smith
Ranch Hand
Joined: Jun 27, 2002
Posts: 401
|
|
I wonder how normal smart people smartly handle this common problem. Please advise.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
|
|
|
I don't think it's a common problem... in fact, I still don't really see what the problem really is. What problem are you actually trying to solve?
|
 |
Garrett Smith
Ranch Hand
Joined: Jun 27, 2002
Posts: 401
|
|
If I go to a page, I want to identify the link to that page. requestURI: /index.jsp [ May 17, 2007: Message edited by: Garrett Smith ]
|
 |
 |
|
|
subject: pagination
|
|
|