As already explained, if the checkbox is not set, then there will be no field with that name. So you need to check whether the field exists at all. If it is set, then there will be a field with that name and the value as defined in the input tag. If you have several check boxes with the same name, and more than one of them are checked, it will be a list with all these values. So you may need to check the type as well.
[EMAIL PROTECTED] wrote: > if 'Donit' in self.request().fields(): > f1 = self.request().field('Donit') > else: > f1 = None Instead of the first line, you can also write, if self.request().hasField('Donit'): Or, as Michel suggested, you can replace all 4 lines with: f1 = self.request().field('Donit', None) > I am using servlets. Con you give me some > links on which servlets classes and functios are defined .... The complete HTML documentation is installed together with Webware. The starting page is Docs/index.html; it is the same as the online Docu at http://www.w4py.org/Docs/ Click on "Component Index", then "WebKit". There you have the manuals and tutorials for WebKit, the main Webware component. There is also a class and file list for the Python modules belonging to WebKit. For a first orientation, the summaries are helpful. For instance, you will find the methods for accessing fields listed under ## Fields ## here: http://www.w4py.org/WebKit/Docs/Source/Summaries/HTTPRequest.html Hope that helps. -- Christoph ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss