Opened 16 years ago

Last modified 16 years ago

#1214 closed enhancement

PathInfo support in extension servlets — at Initial Version

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 2.10
Component: web Version:
Keywords: Cc:

Description

Extensions that which to use servlets are currently required to follow a limited naming scheme when invoking the servlet from an URL:

http://a.base.server/base2/extensions/jar-name/servlet-name.servlet

It is possible to append a query string, but not PATH-INFO. For techincal reasons the URL must still end with '.servlet', but it should be possible to do something like:

http://a.base.server/base2/extensions/jar-name/servlet-name/path/info.servlet

What is required is basically that we need to change the regexp that parses the URL, and to remap the Request.getServletPath() and Request.getPathInfo() to the proper values. Eq:

servlet-path = /extensions/jar-name/servlet-name path-info = /path/info.servlet

See http://baseplugins.thep.lu.se/ticket/162 (and related mailing list message) for background info.

Change History (0)

Note: See TracTickets for help on using tickets.