>>> Gabriel Wong <[EMAIL PROTECTED]> 4/1/99 12:58:50 AM >>>
Gabriel wrote:
>I don't have a problem with using parameters. Until there are
specific rules
>regarding this issue, its a matter of programmer preference -
parameter or
>pathinfo...
James Duncan Davidson wrote:
> > Nick in case I want to do RequestDistpatcher or sendRedirect:
> > http://mydomain.com/myjspmgr.jsp/~gabrielw/mycustomjspfile.jsp
> >
> > so in myjspmgr.jsp
> > I can
...getRequestDistpatcher(servletrequest.getPathInfo()).forward(req,res);
>
> But you are encoding a parameter info as part of the pathinfo....
Use
>
> http://mydomain.com/myjspmgr.jsp?loc=~gabrielw/mycustomjspfile.jsp
>
> Trying to overload the mappings to that point would be
unneccessarily
> complicated.
>
> .duncan
James,
I'm glad you said this and not me.
I was thinking just the same thing.
And... if this is so doesn't my simple rule for (admitedly)
arbritrary file testing?
Rule is:
if there is a slash after a dot then you can use the part after the
dot as a file extension.
Of course you would already have attempted matches on all the
directory paths in your engine.
Nic
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html