It may be ugly, but this comes to mind. Map all requests to /admin* to your servlet.
Also setup the /admin* to be constrained. Someone goes to http://www.yourserver.com/admin. They must log in. Once logged in, all requests go to your servlet. The servlet strips off the URL information and redirects to a page or whatever you choose for all requests. So if you wanted an intro page and then they could click a link to go to their requested page, then you could send all requests to the servlet (regardless of URL) and then redirect to the page. Of course you have to be careful about URI mappings, etc so you don't get yoursefl caught in a loop. But that is a general idea. On 8/14/06, Eurig Jones <[EMAIL PROTECTED]> wrote:
That was my guess initially, but there is no way of knowing that the request the filter is given has been through the security... Unless I'm wrong about this...? Marc Farrow wrote: > My guess is that the easiest thing to do is to create a filter. > > > On 8/14/06, Eurig Jones <[EMAIL PROTECTED]> wrote: >> >> Hi, hopefully someone can help me... >> >> My Secured area is /admin/* which requires the "administrator" role to >> view. >> >> If someone requests /admin/edit.faces, they are prompted with a login >> prompt as expected. If they login correctly they'll proceed to >> /admin/edit.faces >> >> What I want to do is forward any request that goes to /admin/*, after >> having to login, to go to /admin/index.faces and not the page they >> initially requested. >> >> I have looked into extending the JDBCRealm (or JNDI) but I will not be >> able to control where request/response from there. Can anyone point me >> in the right direction to what I have to extend (or whatever I have to >> do) to achieve the above? >> >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- Fugro Robertson Limited Telephone: +44+ (0)1492 581811 Tyn-y-coed Site Fax: +44+ (0)1492 583416 Llanrhos Llandudno North Wales UK LL30 1SA General Email: [EMAIL PROTECTED] World Wide Website: www.fugro-robertson.com ******************************************************************** * This email may contain confidential and privileged information * * intended solely for the individual or organisation to whom it is * * addressed. If the reader is not the intended addressee, or the * * employee or agent responsible to deliver it to the addressee, * * you are hereby notified that any dissemination, distribution or * * copying is strictly prohibited. If you have received this email * * in error, please notify the sender and either destroy the email * * or return it to [EMAIL PROTECTED] * * Please note this email is not intended to create legal relations.* ******************************************************************** --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marc Farrow