aspose file tools*
The moose likes Servlets and the fly likes pagination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "pagination" Watch "pagination" New topic
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: 61224
    
  66

pagination?

So you are trying to see if the current request is the result of a specific URL mapping in the deployment descriptor?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61224
    
  66

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pagination