Hi Dian, As Bert suggested Spring Security is a good option.
However if you would like to use Servlet security you can run the quick-start template which ships with the Click contribution. The quick-start generates a small web application which includes Servlet security for two dummy roles: user1 and admin1. To change these roles you can edit them in your web.xml. Please see here for more details: http://incubator.apache.org/click/docs/quick-start.html#ant The docs assume you use Tomcat as your server and an inmemory database for storing users. If you want to use a database instead you need to edit the Tomcat config file: <tomcat-dir>/conf/server.xml See this section for details on setting up Tomcat JDBC support: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JDBCRealm If you have problems let us know. kind regards bob On Tue, Jan 6, 2009 at 10:57 AM, dian ruzda <[email protected]> wrote: > Hello all, > > I still confuse to implements how to make authentification and > authorization in click framework. > I was read click manual and best practise but It can't explaine me more. > does any body can give me simple template about implementation security in > click framework ? > > > thx.. >
