Thanks much for the response. Questions: > One, according to the documentation, you set up filters in > Application.config. Would it be possible to use them in a per-servlet > way? In other words, instead of setting the filters per instance in > the > config file, could I define a filter chain in the __init__ or awake > () of > an application's base class (some SitePage)?
I'm not sure if I fully understand this (and I'd like to). What would it mean for them to be per-servlet? Would that mean that the chain could depend on which servlet was actually called, rather than on which filters matched the URL? One of the strengths of the way it works now is it's actually important/useful to define behavior on the pattern of the URL. That's sort of the big win. Or am I misunderstanding? Could you talk out how you'd imagine using it in a per-servlet manner? > Two, although I'm sure I could figure it out by actually using the > filters, you documentation does not quite tie all of the pieces > together > for me. For example, the first thing I though of when reading "The > Code" > section is "Where does the import go?" Where do I import the > AuthorizerFilter that you set up in the config? I'd like to see a > complete (but simple) example. I know that the docs are only > preliminary, but that's my $.02USD. Very helpful. Thanks. I'll take a pass at writing a small, complete application. In answer to your question: you don't ever have to import AuthorizerFilter -- Webware does so for you (so to speak) when it builds a chain which needs it. Your servlet code doesn't import or interact with the filter code directly. A filter can communicate with/influence servlet code, but only via the web data: a filter can modify the data in the request, or change the path, or store things in the session, or, if it wanted to do something really devious, could replace response/request objects in the transaction altogether. You could look at it as -- the filter can help set up the environment in which the servlet then executes. I'll try to make this all clearer in the docs. Thanks again -- very useful feedback. -Dan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Webware-devel mailing list Webware-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-devel