aspose file tools
The moose likes Servlets and the fly likes pagination 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 » Java » Servlets
Reply 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: 56202
    
  13

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
    
  13

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: pagination
 
Similar Threads
scripting-invalid question
Simple operator question
Regex question
images are not displayed in the portlet ... Please help
filter question