tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Chappell" <chr...@dive100.freeserve.co.uk>
Subject Re: Realms and Static pages
Date Thu, 18 Nov 2004 09:57:28 GMT
QM

thanks - I was assuming a mapping between the (e.g.) "Configs" here for
servlet and web-resource-name,
which doesn't actually exist. Hence my befuddlement.


<servlet>
    <servlet-name>Config</servlet-name>

 <security-constraint>
    <web-resource-collection>
      <web-resource-name>Config</web-resource-name>

Chris


----- Original Message -----
From: "QM" <qm300@brandxdev.net>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, November 18, 2004 12:01 AM
Subject: Re: Realms and Static pages


> On Wed, Nov 17, 2004 at 01:25:27PM -0000, Chris Chappell wrote:
> : Thanks QM but I' still not sure what to do!
>
> Please trust me, it's all in the spec...
>
>
> : In my web.xml I have for example  (standard stuff!)
> :
> : <servlet>
> : <servlet-name>Config</servlet-name>
> : <servlet-class>org.myorg.config.Config</servlet-class>
> : </servlet>
> :
> : with a mapping and security contraint.
>
> It helps to show the entire file, since that's the root of the problem.
> ;)
>
>
> : I have searched throught the web.xml options below and cannot work out
which
> : one for static html pages.
>
> Try to think outside the box: are you trying to protect "static html
> pages" or just "certain regions (URIs) of the site?"
>
> Hint: you can map <security-constraint> to plain old URIs, not just
> servlet classes.  Take a close look at the <url-pattern> tag...
>
> -QM
>
> --
>
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message