File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pagination

 
Garrett Smith
Ranch Hand
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I know if the requested page matches a resource?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pagination?

So you are trying to see if the current request is the result of a specific URL mapping in the deployment descriptor?
 
Garrett Smith
Ranch Hand
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder how normal smart people smartly handle this common problem.

Please advise.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic