On Oct 17, 2011, at 6:41 PM, Caldarale, Charles R wrote:

From: Nathan Potter [mailto:npot...@opendap.org]
Subject: Re: JspServlet - Unexpected behavior, possible bug...

by default servlet I mean the servlet mapped to "/" or "/*"

And right there is your terminology problem. The default servlet is the one mapped to "/"; anything mapped to "/*" is _not_ the default servlet, but due to servlet spec rules, it will receive all otherwise unmatched requests, since "/*" is a longer string than "/"; the default servlet will never see any requests in this case.

OK, I guess I wasn't clear on the details of this. That precisely fits the behaviors I have been seeing.



Having both means that you the same page here:
    context/
and here:
    context/hyrax/
Which has been the expected behavior.

Assuming that the word left out of the first sentence is "see" (or equivalent), the "/hyrax" mapping is still redundant; removing it will still get a match due to "/*" for the hyrax servlet.



That's true - but the webapp will not return the same page as context/

I realize that this is truly perverse, but the idea is that you get the same exact page both an contex/ and context/hyrax/ the reason you don't is because the hyrax servlet returns pages that allow the user to browse a directed graph of holdings. When you leave out the /hyrax/ * mapping then the url that ends in context/ will return the top of these holdings ("/"in a relative sense), and the url that ends in context/hyrax/ will return the holdings (if they exisit) for the top level collection called hyrax ("/hyrax/"). The desired result is for both context/ and context/hyrax/ to return the exact same page, the top ("/") of the hyrax servlets holdings.



No, but if you assign a servlet to "/" or "/*" it gets call
foreverything before anything starting with "*".

Not true; "/*" will beat "*.jsp", but "/" does not beat "*.jsp". Check the rules in the spec.

I did in fact read the spec. but I guess I didn't fully get this bit.



Maybe we need to see all of your servlet mappings in your web.xml.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


= = =
Nathan Potter                        ndp at opendap.org
OPeNDAP, Inc.                        +1.541.231.3317





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to